Classes not loaded by the custom class loader must be loaded by the system class loader, based on the search order specified by the server class path setting. These classes cannot be refreshed without restarting the server. It can be more efficient configure system class loaders for classes that are used server wide, as long as all components that use them require the same class versions, and you do not need to refresh the classes without restarting the server. (For classes used server-wide that may be updated, you can configure sharing of the classes at the server class loader level, as described in “Custom class lists for packages, applications, or servers”.)
By default, the server class path includes these entries:
Class files deployed in the class trees rooted in the EAServer java/classes and html/classes subdirectories.
All JAR files in the java/lib directory that exist when the server starts, exclusive of jagtool.jar, jdmkrt.jar, and jdkmktk.jar.
You can add classes or JAR files to the server’s class path using any of these techniques:
By placing a JAR file that contains the classes in the EAServer java/lib subdirectory. At startup, EAServer automatically configures the CLASSPATH and BOOTCLASSPATH environment variables to include JAR files that you have placed in this location.
By modifying the CLASSPATH and BOOTCLASSPATH environment variables in the shell where you start the server. You can do this by adding settings to the bin/user_setenv.bat (Windows) or bin/user_setenv.sh (UNIX) scripts. EAServer applies these settings automatically when you start the server. However, they are also applied in the environment for other tools, such as EAServer Manager and jagtool.
By modifying the following server properties, using the advanced tab in the EAServer Manager server properties dialog box:
com.sybase.jaguar.server.jvm.classpath to configure the CLASSPATH setting.
com.sybase.jaguar.server.jvm.classpath.jars to specify JAR files in the java/lib directory to add to the CLASSPATH setting.
com.sybase.jaguar.server.jvm.bootclasspath to configure the BOOTCLASSPATH setting.
com.sybase.jaguar.server.jvm.bootclasspath.jars to specify JAR files in the java/lib directory to add to the BOOTCLASSPATH setting.
For syntax information, see the reference pages in Appendix B, “Repository Properties Reference,” in the EAServer System Administration Guide.
Copyright © 2005. Sybase Inc. All rights reserved. |