J2C Java Bean for CICSECI TADERC25 Cobol Program sample setup instructions

Before you import the Taderc25 sample

  1. Make sure you have a clean workspace.
  2. You need to set up a CICS transaction gateway on a machine to access the server. You also need to perform some setup work on the CICS server machine, where you want the taderc25 CICS program to execute. These steps are not covered; contact you CICS Server administrator.

After you import the TADERC25 sample

If you want to run the sample code, do the following steps:

  1. To associate the sample with your CICS server, you need to change the connection information in Bean implementation class.
  2. Open up the CustomerInfoMOImpl.java in a java editor, and change the following tag to include your CICS server connection information.
     /**
     * @j2c.managedConnectionFactory class="com.ibm.connector2.cics.ECIManagedConnectionFactory"
     * @j2c.managedConnectionFactory-property name="ServerName" value="your CICS server"
     * @j2c.managedConnectionFactory-property name="ConnectionURL" value="your connection URL"
     * @j2c.managedConnectionFactory-property name="UserName" value="userid"
     * @j2c.managedConnectionFactory-property name="Password" value="password"
     * @j2c.managedConnectionFactory-property name="TraceLevel" value="1"
     * @generated
     */
               
  3. Note that we are using the default port 2006. If you port number is different, you need to add a tag to define the port number.
  4. Right Click on TestECIMPO, select Run -> Java Application.
  5. You should see the following on the console. To access the console, you should be in the J2EE perspective.

Congratulations, you have completed the CICSECI Sample.