Git Product home page Git Product logo

cics-java-jcics-samples's Introduction

cics-java-jcics-samples

Sample CICS Java programs demonstrating how to use the JCICS API in an OSGi JVM server environment.

Samples overview

Repository structure

  • 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.

Pre-requisites

  • CICS TS V5.1 or later, due to the usage of the getString() methods.
  • Java SE 7 or later on the z/OS system.
  • Java SE 7 or later on the workstation.
  • Eclipse with CICS Explorer SDK installed.

Configuration

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.

Starting a JVM server in CICS

  1. Enable Java support in the CICS region by adding the SDFJAUTH library to the STEPLIB concatenation and setting USSHOME and the JVMPROFILE SIT parameters.
  2. Define an OSGi JVM server called DFHJVMS using the CICS-supplied sample definition in the CSD group DFH$OSGI.
  3. Copy the CICS supplied DFHOSGI.jvmprofile zFS file to the zFS directory specified by the JVMPROFILE SIT parameter, and ensure the JAVA_HOME variable is set correctly.
  4. Install the DFHJVMS resource defined in step 2 and ensure it becomes enabled.

Import the resources into your IDE

  1. Ensure you have an Eclipse-based IDE with the CICS Explorer SDK installed.
  2. Import the relevant projects into your Eclipse environment as described in Adding the resources to Eclipse.
  3. Follow the instructions in the Generated resources section to add any required binary libraries to the build path.

To deploy the samples into a CICS region

  1. Using the CICS Explorer export the com.ibm.cicsdev.*.cicsbundle projects to a zFS directory. The sample definitions use the following style of zFS location /u/cics1/com.ibm.cicsdev.link.cicsbundle_1.0.0.
  2. Define and install CICS BUNDLE resource defintions referring to the deployed bundle directory in step 1, and ensure all resources are enabled.
  3. Create the required transaction and program definitions using either the supplied DFHCSD.txt files as input to a CSD define job, or using the supplied CICS bundle projects.
  4. See the individual project directories for any additional supporting resources required.

License

This project is licensed under Apache License Version 2.0.

Reference

cics-java-jcics-samples's People

Contributors

philwakelin avatar ian-burnett avatar chrispoole643 avatar markcocker avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.