In order to run the input and output array sample, follow
the instructions below.
Before you begin
- Make sure that you have a clean workspace.
- You need to perform some setup work on the IMS™ server machine, where you want the InEqualsOut IMS program to execute. These steps are not covered; contact your IMS server administrator for setup
instructions and for connection information to your IMS server.
About this task
You need to configure the server and associate the sample
with it using the following steps:
Procedure
- To associate the sample with your IMS server, you need to change the connection
information in the bean implementation class.
- Open InOutImpl.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="dataStoreName" value="dataStoreName"
* @j2c.managedConnectionFactory-property name="hostName" value="hostname"
* @j2c.managedConnectionFactory-property name="portNumber" value="portNumber"
* @j2c.connectionSpec class="com.ibm.connector2.ims.ico.IMSConnectionSpec"
* @generated
*/
- Testing the application using the TestInOutProxy.java program: To directly invoke and run the TestInOutProxy program,
you will use the TestInOutProxy.java file. The TestInOutProxy.java example is only used as a reference.
You may need to change the transaction code in the TestInOutProxy.java file. Consult your IMS administrator.
To make modification to the transaction code, locate the statement input.setWs__trcd("SKS7 "); and make modifications.
- Navigate to TestInOutProxy.java under the project InOutArray and
package sample.ims.
- Right click to invoke .
Results
You can see the results in the console: