When you are developing Java™ applications,
various restrictions apply otherwise problems might occur when the
applications are running in CICS®.
The following restrictions apply for Java applications
used in CICS:
- System.exit() method: this method cannot be
used in Java applications otherwise
the application abnormally ends, the JVM server shuts down, and CICS shuts down. Use a security
policy to disable support for System.exit(). For
related information see Enabling a Java security manager.
- JCICS API calls: these calls cannot be used in the activator classes of OSGi bundles.
Note: The Java thread that runs the OSGi bundle activator will not be JCICS-enabled. You can start a new JCICS-enabled thread from an activator using the
CICSExecutorService.runAsCICS() API. There is more information in
Threads and tasks example.
- Start and stop methods used in bundle activators: these methods
must return in a reasonable amount of time.