jConnect version 5.x and later have a connection property called PRELOAD_JARS. When defined as a comma-delimited list of JAR file names, the JAR files are loaded in their entirety. In this context, “JAR” refers to the “retained JARname” used by the server. This is the JAR name specified in the install Java program, for example:
install java new jar 'myJarName' from file '/tmp/mystuff.jar'
If you set PRELOAD_JARS, the JAR files are associated with the class loader, so it is unnecessary to preload them with every connection. You should only specify PRELOAD_JARS for one connection. Subsequent attempts to preload the same JAR files may result in performance problems as the JAR data is retrieved from the server unnecessarily.
Adaptive Server Anywhere 6.x and later cannot return
a JAR file as one entity, so jConnect iteratively retrieves each
class in turn. However, Adaptive Server 12.x and later retrieves
the entire JAR and loads each class that it contains.
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |