Before you import the sample
-
Make sure you have a clean workspace.
-
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, where you want the CICS program to execute. These steps are not covered; contact you CICS server administrator.
After you import the sample,
you need to perform the following steps:
- To associate the sample with your CICS server, you need to change the connection information in the bean implementation class.
- 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
*/
- 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.
-
Right Click on TestECIMPO, select Run -> Java Application.
- You should see the following on the console. To access the console, you should be in the J2EE perspective.
Congratulations, you have completed the different input and output sample.
|