No general configuration is necessary to activate CICS® Java™ support. By default, CICS adds the necessary entries to both the CLASSPATH and LIBPATH environment variables, and adds the directory /var/cics_regions/region/classes to the CLASSPATH environment variable. You can add classes directly under /var/cics_regions/region/classes.
LD_LIBRARY_PATH=<LD_LIBRARY_PATH>:JAVA_HOME/lib/i386/classic
Where
<LD_LIBRARY_PATH> is the currently set LD_LIBRARY_PATH
path in your system.public static void main(com.ibm.cics.server.CommAreaHolder CAH)
public static void main(String args[])
The Shared Classes feature in TXSeries provides you the capability of reducing virtual memory footprint and improving the JVM startup time. You enable class sharing by adding CICS_JAVA_SHAREDCLASS=1 in your region environment file and restarting the region.
When CICSAS starts a Java transaction with the configured JVM, it creates a class cache having the region name. You need to choose a restricted, platform-dependent default value (typically 16MB) for the size of shared cache. A shared cache in TXSeries is the area of shared memory having a fixed size of 16 MB. The cache exists in shared memory and a configuration file is written to /var/cics_regions/<region_name>/javashared by the JVM to allow all JVM's to locate the shared memory areas by name.
You can destroy the class which is being used by the region using CICSSharedClassUtil example program.