SQLJ.REFRESH_CLASSES

The SQLJ.REFRESH_CLASSES stored procedure causes the reloading of user defined classes used by Java™ stored procedures or Java UDFs in the current database connection. This stored procedure must be called by existing database connections to obtain changes made by a call to the SQLJ.REPLACE_JAR stored procedure.

Authorization

NONE

Syntax

     
     >>-CALL--SQLJ.REFRESH_CLASSES-- ()-->
     >--------------------------------------------------------------><

Example

Call a Java stored procedure, MYPROCEDURE, that uses a class in a jar file registered with the MYJAR jarid:

     
     CALL MYPROCEDURE()

Replace the jar file using the following call:

     CALL SQLJ.REPLACE_JAR('MYJAR', '/tmp/newjarfile.jar')

In order for subsequence calls to the MYPROCEDURE stored procedure to use the updated jar file, SQLJ.REFRESH_CLASSES must be called:

     CALL SQLJ.REFRESH_CLASSES()

Call the stored procedure again. The updated class files are used when the procedure is called.

     CALL MYPROCEDURE()
Related reference
SQLJ.INSTALL_JAR
SQLJ.REMOVE_JAR
SQLJ.REPLACE_JAR
SQLJ.UPDATEJARINFO
SQLJ.RECOVERJAR