JCICS API services and examples
CICS® supports a range of APIs and services for Java™ applications. Many of the services available to non-Java programs through the EXEC CICS API are available to Java programs through the JCICS API along with the standard Java SE APIs provided by the Java SDK.
These topics provide details on the JCICS services and the
integration with
Java
exception
handling. Other JEE APIs are available in the Liberty JVM server;
for further details, see
Developing Java applications to run in a Liberty JVM server.
- CICS exception handling in Java programs
CICS ABENDs and exceptions are integrated into the Java exception-handling architecture to handle problems that occur in CICS. - CICS exception handling in Java Web applications
CICS ABENDs and exceptions are integrated into the Java exception-handling architecture for the Liberty Web container to handle problems that occur in CICS applications. Any Java exception that is not handled by a Web application will be caught by the Web container and drive the servlet exception handling process. As part of this processing any uncommitted CICS units of work will be rolled back by CICS. - JCICS exception mapping
In Java, a condition returned by a CICS command is mapped into a Java exception. - Error handling and abnormal termination
To initiate an ABEND from a Java program, you must invoke one of the Task.abend() or Task.forceAbend() methods. - APPC mapped conversations
APPC unmapped conversation support is not available from the JCICS API. - Basic Mapping Support (BMS)
Basic mapping support (BMS) is an application programming interface between CICS programs and terminal devices. JCICS provides support for some of the BMS application programming interface. - Channel and container examples
Containers are named blocks of data designed for passing information between programs. Containers are grouped in sets called channels. This information explains how you can use channels and containers in your Java application and provides some code examples. - Diagnostic services
The JCICS application programming interface has support for these CICS trace and dump commands. - Document services
This section describes JCICS support for the commands in the DOCUMENT application programming interface. - Environment services
CICS environment services provide access to CICS data areas, parameters, and resource attributes that are relevant to an application program. - File services
JCICS provides classes and methods that map to the EXEC CICS API commands for each type of CICS file and index. - HTTP and TCP/IP services
Getters in classes HttpHeader, NameValueData, and FormField return HTTP headers, name and value pairs, and form field values for the appropriate API commands. - Program services
JCICS supports the CICS program control commands; LINK, RETURN, and INVOKE APPLICATION. - Scheduling services
JCICS provides support for the CICS scheduling services, which let you retrieve data stored for a task, cancel interval control requests, and start a task at a specified time. - Serialization services
JCICS provides support for the CICS serialization services, which let you schedule the use of a resource by a task. - Storage services
No support is provided for explicit storage management using CICS services (such as EXEC CICS GETMAIN). You should find that the standard Java storage management facilities are sufficient to meet the needs for task-private storage. - Threads and tasks example
If your CICS Java application is running within an OSGi or Liberty environment, you can run work under a separate thread on a separate CICS task/transaction by using the CICSExecutorService. - Temporary storage queue services
JCICS supports the CICS temporary storage commands; DELETEQ TS, READQ TS, and WRITEQ TS. - Terminal services
JCICS provides support for these CICS terminal services commands. - Transforming between data and XML
JCICS supports API commands to transform data to XML and vice versa. These commands provide the equivalent functions to the EXEC CICS TRANSFORM DATATOXML and TRANSFORM XMLTODATA commands. - Transient data queue services
JCICS supports the CICS transient data commands, DELETEQ TD, READQ TD, and WRITEQ TD. All options are supported except the INTO option. - Unit of work (UOW) services
JCICS provides support for the CICS SYNCPOINT service. - Web services example
JCICS supports all API commands that are available for working with web services in an application.
dfhpjla.html |
Last updated: Monday, 5 June 2017