Chapter 1 Introduction to Jaguar CTS
Before you can work through the tutorials, run the sample applications, or develop Jaguar applications, you must start the preconfigured Jaguar server.
If the preconfigured server is not installed as an NT service, you can start it using the Windows Start menu, under Start | Programs | Sybase | Jaguar CTS. Choose one of the options below: Jaguar Server -
Debug and JDK 1.2 servers
Debug-mode servers allow you to remotely debug components
from tools that support Jaguar component debugging, such as PowerBuilder
or PowerJ. You cannot run the debug-mode server unless you installed
the debug libraries and binaries. The debug server cannot run as
an NT service.Jaguar can run with your choice of Java runtime engines, including
Sun JDK 1.1 or 1.2, or the Microsoft Java Virtual Machine. You must
run Jaguar with JDK 1.2 to use the full set of available features.
Web applications, Java Server Pages, and EJB 1.1 components require
JDK 1.2.
To start a user-defined server, you must first create a server. See "Creating or deleting a server" in the Jaguar CTS System Administration Guide for instructions. Then change to the %JAGUAR% directory, and run one of the following commands, where Server_name is the name of the Jaguar server you want to start:
bin\serverstart Server_name
devbin\serverstart_jdk12 Server_name
devbin\serverstart_dev Server_name
devbin\serverstart_jdk12_dev Server_name
If a Jaguar server is installed as an NT service, the server is started automatically whenever you start NT. To start a service manually, you can use the Services dialog in the Windows NT Control Panel, as follows:
You can also run this command in the Jaguar bin subdirectory:
serverstart servicename -startwhere servicename is the name of the server. To stop the server, use:
serverstart servicename -stop
You should install production servers as NT services, so the Jaguar server starts automatically when NT starts. Do not install development servers as NT services, since you will often want to run the debug server on your development machine, and the debug server cannot be run as an NT service.
To install a server as an NT service:
Some Jaguar features require JDK 1.2
You must run Jaguar with JDK 1.2 to use the full set of available
features. Web applications, Java Server Pages, and EJB 1.1 components
require JDK 1.2.
serverstart_jdk12 server -install
serverstart server -install
serverstart_msvm server -install
To remove a server from the list of NT services:
serverstart servicename -removewhere servicename is the name of the server as displayed in the Services dialog in the Windows NT Control Panel.
Edit service names separately
If you delete a server definition in Jaguar Manager after
installing an NT service for that server, run the serverstart command
to remove the server from the list of services.
This section lists the complete syntax of the serverstartXXX batch files, located in the Jaguar bin subdirectory.
serverstartXXX [ servername [ options ]]where
serverstart Jaguar -c
You can use the JagRepair server when you are unable to start your Jaguar server; for example, if you have specified incorrect Object Transaction Service (OTS) settings which prevents the server from starting and makes it impossible to correct the problem. The JagRepair server is read-only and provided for repair purposes only.
To start and connect to the JagRepair server:
%JAGUAR%\bin\serverstart JagRepair
jagadmin
as
the User Name
localhost
as
the Host Name
9000
as the
Port Number
When you are running the JDK 1.2 Jaguar server, you may need to edit the BOOTLIBRARYPATH and BOOTCLASSPATH environment variables.
Set BOOTLIBRARYPATH if you use Java classes that call native code in DLLs or shared libraries. Add the locations of these DLLs or libraries to the BOOTLIBRARYPATH environment variable. The syntax for setting this environment variable is the same as for setting the PATH variable.
Set BOOTCLASSPATH if your Jaguar components require Java classes that are not in the standard Jaguar locations (the Jaguar html/classes and java/classes subdirectories). For Java components and Web applications, you can also specify classes to be loaded on a per-component or per-Web-application basis. See the Jaguar CTS Programmer's Guide for more information.
Jaguar requires a random seed to initialize the random number generation used in cryptographic algorithms. The data used as the seed for the random number generation depends on your platform. On NT, Jaguar accesses the contents of the HKEY_PERFORMANCE_DATA Registry entry. On UNIX machines, Jaguar accesses the process, virtual memory, and network statistics. However, you can set the JAGUAR_RANDOMSEED variable to improve Jaguar server performance without diminishing the randomness of the seeding data.
JAGUAR_RANDOMSEED determines the algorithm as follows:
To set JAGUAR_RANDOMSEED:
Copyright © 2000 Sybase, Inc. All rights reserved. |
![]() |