Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » Java in the database » How to install Java classes into a database

 

Updating classes and JAR files

Replace classes and JAR files with updated copies by using Sybase Central.

Prerequisites

To update a class or JAR, you must have the MANAGE ANY EXTERNAL OBJECT system privilege.

You must have a newer version of the compiled class file or JAR file available.

Context and remarks

Only new connections established after installing the class, or that use the class for the first time after installing the class, use the new definition. Once the Java VM loads a class definition, it stays in memory until the connection closes. If you have been using a Java class or objects based on a class in the current connection, disconnect and reconnect to use the new class definition.

 Task
  1. Use the Sybase Central SQL Anywhere 16 plug-in to connect to the database.

  2. Open the External Environments folder.

  3. Under this folder, open the Java folder.

  4. Locate the subfolder containing the class or JAR file you want to update.

  5. Click the class or JAR file and then click File » Update.

  6. In the Update window, specify the location and name of the class or JAR file to be updated. You can click Browse to search for it.

Results

Only new connections established after installing the class, or that use the class for the first time after installing the class, use the new definition. Once the Java VM loads a class definition, it stays in memory until the connection closes. If you have been using a Java class or objects based on a class in the current connection, disconnect and reconnect to use the new class definition.

Next

You can also update a Java class or JAR file by right-clicking the class or JAR file name and choosing Update.

As well, you can update a Java class or JAR file by clicking Update Now on the General tab of its Properties window.

 See also