ASA Programming Guide
Using Java in the Database
Java-enabling a database
The Adaptive Server Anywhere runtime Java classes are held on disk rather than stored in a database like other classes. The following files contain the Adaptive Server Anywhere runtime Java classes. The files are in the Java subdirectory of your SQL Anywhere directory:
1.1\classes.zip This file, licensed from Sun Microsystems, contains a subset of the Sun Microsystems Java runtime classes for JDK 1.1.8.
1.3\rt.jar This file, licensed from Sun Microsystems, contains a subset of the Sun Microsystems Java runtime classes for JDK 1.3.
asajdbc.zip This file contains Adaptive Server Anywhere internal JDBC driver classes for JDK 1.1.
asajrt12.zip This file contains Adaptive Server Anywhere internal JDBC driver classes for JDK 1.2 and JDK 1.3.
When you Java-enable a database, you also update the system tables with a list of available classes from the system JAR files. You can then browse the class hierarchy from Sybase Central, but the classes themselves are not present in the database.
The database stores runtime class names the under the following JAR files:
ASACIS Classes required for remote data access are stored here.
ASAJDBCDRV Class names from jdbcdrv.zip are held here. (com.sybase.jdbc package).
ASAJIO
ASAJRT Class names from asajdbc.zip are held here.
ASASystem Class names from classes.zip are held here.
ASASystemUNIX Class names from classes.zip are held here.
These runtime classes include the following packages:
java Packages stored here include the supported Java runtime classes from Sun Microsystems.
com.sybase Packages stored here provide server-side JDBC support.
sun Sun Microsystems provides the packages stored here.
sybase.sql Packages stored here are part of the server-side JDBC support.
Caution: do not install classes from another version of Sun's JDK Classes in Sun's JDK share names with the Adaptive Server Anywhere runtime Java classes that must be installed in any database intended to execute Java operations. You must not replace the classes.zip file included with Adaptive Server Anywhere. Using another version of these classes could cause compatibility problems with the Adaptive Server Anywhere Java Virtual Machine. You must only Java-enable a database using the methods outlined in this section. |