Using dynamic class loading

SQL Anywhere and Adaptive Server allow you to specify Java classes as:

In earlier versions, only classes that appeared in the jConnect CLASSPATH were accessible, that is, if a jConnect application attempted to access an instance of a class that was not in the local CLASSPATH, a java.lang.ClassNotFound exception would result.

jConnect version 6.05 and later implements DynamicClassLoader (DCL) to load a class directly from an SQL Anywhere or Adaptive Server server and use it as if it were present in the local CLASSPATH.

All security features present in the superclass are inherited. The loader delegation model implemented in Java 2 is followed—first jConnect attempts to load a requested class from the CLASSPATH; if that fails, jConnect tries the DynamicClassLoader.

See Java in Adaptive Server for more detailed information about using Java and Adaptive Server.