Before you import the sample,
-
Make sure you have a clean workspace.
-
You need to perform some setup work on the IMS server, where you want the MSO IMS program to execute. These steps are not covered. Contact your IMS server administrator for setup and for connection information to your IMS server.
After you import the sample,
you need to configure the server and associate the sample with it using the following steps:
- To associate the sample with your IMS server, you need to change the connection information in Bean implementation class.
- Open up the MSOImpl.java in a java editor, change the following tag to use your IMS server connection information.
/*
* @j2c.managedConnectionFactory class="com.ibm.connector2.ims.ico.IMSManagedConnectionFactory"
* @j2c.managedConnectionFactory-property name="HostName" value="csdmecxx.sss.ibm.com"
* @j2c.managedConnectionFactory-property name="PortNumber" value="9999"
* @j2c.managedConnectionFactory-property name="DataStoreName" value="IMS1"
* @generated
*/
Testing the application using the TestMultiSeg.java program
To directly invoke and run the TestMultiSeg program, you will use the TestMultiSeg.java file.
The TestMultiSeg.java sample is only used as a reference. You may need to change the transaction code in the TestIMultiSeg.java file. Please find out
from your IMS administrator. To make modification to the transaction code, locate the statement input.setIn__trcd("SKS6 "); and make modifications.
-
Go to TestMultiSeg.java under the project MultiSegOutput and package sample.ims.
-
Right click to invoke Run -> Run As Application.
You will see the following in the console:
Congratulations, you have completed the Multiple Segment IMS Transaction Output Messages Sample.
|