The JCICS application programming interface has new methods
and other new elements to provide Java™ support
for some of the new functions available through the EXEC
CICS application programming interface.
The methods in the JCICS API do not map exactly to the functions
available through the EXEC CICS API. For example,
the function of a single EXEC CICS command might
be provided by multiple JCICS methods, or some functions of an EXEC
CICS command might not be supported by any JCICS method.
This topic lists the changes to the JCICS API with the EXEC
CICS commands that provide the same functions, but the JCICS
method and EXEC CICS command do not necessarily
provide equivalent functions.
New JCICS methods
in CICS Transaction Server for z/OS®, Version 5 Release 2
A
new method in the Task class returns the current application context
of the task:
- com.ibm.cics.server.Task.getApplicationContext()
The JCICS API provides an equivalent for the following
new API command:
The support is provided by the following new JCICS class:
- com.ibm.cics.server.Application
- This class is the Java implementation of the EXEC CICS
INVOKE APPLICATION command.
New JCICS methods in CICS Transaction Server for z/OS, Version 5 Release 1
To
support starting new CICS® tasks
from a Java application, a new
class CICSExecutorService is available in JCICS.
The class implements the Java ExecutorService interface
that creates threads that can use the JCICS API to access CICS services. This class has a
static method called runAsCICS().