Sample applications

CICS supplies two sample applications that illustrate how a CICS Java program or enterprise bean can use the CCI Connector for CICS® TS to call a CICS server program:
  1. The CCI Connector sample. This is a relatively simple application that shows how to code the CCI APIs directly.
    The CCI Connector sample illustrates how to:
    1. Look up a previously-published connection factory in a JNDI namespace
    2. Use the CCI Connector for CICS TS to call a CICS server program

    The CCI Connector sample is described in The CCI Connector sample application.

  2. The EJB Bank Account sample. This is a more complex sample that illustrates how you can use enterprise beans and DB2® to make CICS-controlled information available to Web users. The sample implements a CICS enterprise bean that uses the CCI Connector for CICS TS to link to back-end CICS COBOL programs. The COBOL programs extract information from DB2 data tables.

    The EJB Bank Account sample is described in The EJB Bank Account sample application.

CICS also supplies two sample utility programs that show you how to:
  1. Publish a connection factory to a JNDI namespace (the CICSConnectionFactoryPublish sample). This is described in Publishing a connection factory using CICSConnectionFactoryPublish.
  2. Retract a previously-published connection factory from the JNDI namespace (the CICSConnectionFactoryRetract sample). This is described in Retracting a connection factory using CICSConnectionFactoryRetract.