Sample CICS Java programs demonstrating how to use the JCICS API in an OSGi JVM server environment.
- com.ibm.cicsdev.link- Performing CICS LINK operations using both commareas, and channels and containers.
- com.ibm.cicsdev.serialize- Serializing access to a common resource using the CICS ENQ and DEQ mechanism.
- com.ibm.cicsdev.tdq- Accessing transient data queues.
- com.ibm.cicsdev.terminal- Reading in data from a terminal for an OSGi application.
- com.ibm.cicsdev.tsq- Accessing temporary storage queues.
- com.ibm.cicsdev.vsam- Accessing KSDS, ESDS, and RRDS VSAM files.
- etc/- Supporting materials used to define CICS and z/OS resources needed for the samples.
- projects/- Complete Eclipse projects suitable for importing into a CICS Explorer environment.
- src/- Supporting source code for non-Java programs.
- Java SE 1.8 or later on the workstation
- Eclipse with the IBM CICS SDK for Java or any IDE that supports usage of the Maven Central artifact com.ibm.cics:com.ibm.cics.server.
The sample Java classes are designed to be added to an OSGi bundle and deployed into a CICS OSGi JVM server, but can also be used as the basis for extending Web applications deployed into a Liberty JVM server.
- Enable Java support in the CICS region by adding the SDFJAUTHlibrary to theSTEPLIBconcatenation and settingUSSHOMEand theJVMPROFILESIT parameters.
- Define an OSGi JVM server called DFHJVMSusing the CICS-supplied sample definition in the CSD groupDFH$OSGI.
- Copy the CICS supplied DFHOSGI.jvmprofilezFS file to the zFS directory specified by theJVMPROFILESIT parameter, and ensure theJAVA_HOMEvariable is set correctly.
- Install the DFHJVMSresource defined in step 2 and ensure it becomes enabled.
- Ensure you have an Eclipse-based IDE with the CICS Explorer SDK installed.
- Import the relevant projects into your Eclipse environment as described in Adding the resources to Eclipse.
- Follow the instructions in the Generated resources section to add any required binary libraries to the build path.
- Using the CICS Explorer export the com.ibm.cicsdev.*.cicsbundleprojects to a zFS directory. The sample definitions use the following style of zFS location/u/cics1/com.ibm.cicsdev.link.cicsbundle_1.0.0.
- Define and install CICS BUNDLEresource defintions referring to the deployed bundle directory in step 1, and ensure all resources are enabled.
- Create the required transaction and program definitions using either the supplied DFHCSD.txtfiles as input to a CSD define job, or using the supplied CICS bundle projects.
- See the individual project directories for any additional supporting resources required.
This project is licensed under Apache License Version 2.0.
- CICSDev tutorial archive Getting to Grips with JCICS
- For further details on using the IBM Record Generator for Java see this tutorial
- For details on how to define a CICS OSGi JVM server refer to the Knowledge Center topic Configuring an OSGi JVM server