MFS transaction sample setup instructions

In order to run the input and output array sample, follow the instructions below.

Before you begin

  1. Make sure that you have a clean workspace.
  2. You need to perform some setup work on the IMS™ server machine, where you want the dfsivf1.mfs MFS program to execute. These steps are not covered; contact your IMS server administrator for setup instructions and for connection information to your IMS server.
  3. Ensure that you have a WebSphere® Application Server v8 or v8.5 installed and a profile created.

About this task

After you import the sample, you need to change the server information in the PhoneBookImpl.java file.

Procedure

  1. In the Enterprise Explorer view, expand "MFSPhoneBookWeb > Java Resources > src > com.ibm.ims.mfs. Right-click PhoneBookImpl.java, and select Open with > Java editor.
  2. In PhoneBookImpl.java, change the following tag to use your IMS server connection information. Locate the hostname value, and replacetest.ibm.com with the name of your IMS server. Check the values datastorename and portnumber, and type your own values in these fields. Press CTRL+S to save.
    /**
     * @j2c.managedConnectionFactory class="com.ibm.connector2.ims.ico.IMSManagedConnectionFactory"
     * @j2c.managedConnectionFactory-property name="dataStoreName" value="dataStore"
     * @j2c.managedConnectionFactory-property name="hostName" value="hostname"
     * @j2c.managedConnectionFactory-property name="portNumber" value="9999"
     * @j2c.connectionSpec class="com.ibm.connector2.ims.ico.IMSConnectionSpec"
     * @generated
     */
  3. In the Enterprise Explorer view, expand MFSPhoneBookWeb > WebContent > sample. Right-click TestClient.jsp, and select Run As > Run on Server.
  4. When the browser page opens, click IVTNOMI1:
    MFS method
  5. When the browser page opens, click IVTNOMI1. In the Inputs section, in the cMD field, type DISPLAY, and in the nAME1 field, type LAST1. These values are case sensitive. Click Invoke:
    MFS sample inputs

Results

You can see the results in the console:
MFS sample output

Feedback