| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Sample CICS Java programs demonstrating how to use the JCICS API in an OSGi JVM server environment.
The sample includes Eclipse project configurations, Gradle and Maven build files and Gradle/Maven Wrappers offering a wide range of build options with the tooling and IDE of your choice.
Choose from the following 2 main approaches:
The sample comes pre-configured with a Gradle wrapper and build files to facilitate automated builds.
The CICS JVM server name should be modified in the cics.jvmserver property in the gradle build file or alternatively can be set on the command line (see below).
Gradle Wrapper (Linux/Mac):
./gradlew clean buildGradle Wrapper (Windows):
gradlew.bat clean buildGradle Wrapper setting jvmserver:
gradlew clean build "-Pcics.jvmserver=MYJVM"A JAR file for each CICS bundle project is created inside the application project build/libs/ sub-directory and a CICS bundle ZIP file inside the CICS bundle project build/distributions directory.
The sample comes pre-configured with a Maven wrapper and build files to facilitate automated builds.
The CICS JVM server name should be modified in the <cics.jvmserver> property in the build files to match the required CICS JVMSERVER resource name, or alternatively can be set on the command line (see below).
Maven Wrapper (Linux/Mac):
./mvnw clean verifyMaven Wrapper (Windows):
mvnw.cmd clean verifyMaven Wrapper setting jvmserver:
mvnw clean verify "-Dcics.jvmserver=MYJVM"A JAR file for each CICS bundle project is created inside the application project target sub-directory and a CICS bundle ZIP file inside the CICS bundle project target directory.
To import the sample into Eclipse either
The sample comes pre-configured for use with Java 17 and the CICS TS V5.5 Target Platform. When you initially import the project to your IDE, if your IDE is not configured for Java 17, or does not have CICS Explorer SDK installed with the correct Target Platform set, you might experience local project compile errors.
To resolve build issues:
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.
jar -xvf bundle.zipNote: The CICS bundle projects also include Maven and Gradle build files which will also be exported to zFS when using the CICS Explorer SDK. These build files and any related build artifacts acts can be safely deleted from the CICS bundle projects to prevent them being exported to zFS when deploying using the CICS Explorer SDK.
Define an OSGi JVM server resource called DFHJVMS based on the CICS-supplied sample definition in the CSD group DFH$OSGI and install. Ensure this resource become enabled.
CICS resource definitions for the bundle, programs, transactions are supplied as a DFHCSDUP sample input for each sub-project in the etc directory, for instance etc/Link/DFHCSD.txt for the cics-java-jcics-link-app project. Use the DFHCSDUP input files to create group JCICSAMP in the CSD. Then group JCICSAMP containing the BUNDLE, TRANSACTION and PROGRAM resources and ensure the bundle resources become enabled.
Instead of using the DFHCSDUP process CICS resources can be created using the bundle parts supplied with the Eclipse CICS bundle projects in the cics_bundle_projects directory. See the individual project directories for any additional supporting resources required.
By downloading, installing, and/or using this sample, you acknowledge that separate license terms may apply to any dependencies that might be required as part of the installation and/or execution and/or automated build of the sample, including the following IBM license terms for relevant IBM components:
This project is licensed under Apache License Version 2.0.
| Back | FazBrowse Home | New Git URL |