Inbound application setup instructions

In order to run the IMS™ inbound application sample, follow the instructions below.

Before you begin

  1. Make sure you have a clean workspace.
  2. You need to set up a IMS transaction gateway on a machine to access the server. You also need to perform some setup work on the IMS server, where you want the IMS SYCALOUT.cpy program to execute. These steps are not covered; contact your IMS server administrator for setup and 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

  1. Click the Servers view.
    Note: If you do not see the Servers view, you must open the Servers view, select Window > Show View > Servers.
  2. In the Servers view, right click WebSphere® Application Server, and select Start.
  3. Once the server is started, right click WebSphere Application Server, and select Administration > Run administrative console. The administrative console appears in the Editor area of your workspace.
  4. Select Resources > Resource Adapters > Resource Adapters.
    Add Resource Adapter
  5. On the Resource Adapters page, click Install RAR.
    Install RAR
  6. On the Resource Adapters page, in the path field, click Browse to locate the RAR file. This file is located in your RAD install directory, under <RAD install>/IBM/SDP/ResourceAdapters/ims<version>. Select imsico<version>.rar, and click Open.
    Browse for RAR file
  7. On the Install RAR page, click Next.
  8. On the Resource Adapters page, provide a name for this resource adapter (IMS TM Resource Adapter) and click OK.
  9. On the Resource Adapters page, click Save.
  10. On the Resource Adapters page, click your new resource adapter (IMS TM Resource Adapter). On the IMS TM Resource Adapter page, in the Additional Properties field, click J2C activation specifications.
  11. On the J2C activation specifications page, click New.
    • In the Name field, type a name for the activation specifications, for example, IMSInbound J2C activation specification custom properties
    • In the JNDI name field, type a JNDI name, for example, IMSInbound, and click Apply
      JNDI name
    .
  12. On the Resource Adapters page, click Save.
  13. On the J2C activation specifications page, click your activation specification resource (IMSInbound).
  14. On the J2C activation specifications page, in the Additional properties field, click J2C activation specification custom properties.
    Activation specification customer properties
    Set the custom properties (You can obtain these values from your IMS administrator):
    1. Click dataStoreName, and provide a value for the IMS datastore name. Click Apply, and on the Resource Adapters page, click Save.
    2. Click hostName, and provide a value for the host name. Click Apply, and on the Resource Adapters page, click Save.
    3. Click portNumber, and provide a value for the port number. Click Apply, and on the Resource Adapters page, click Save.
    4. Click queueNames, and provide a value for the queueNames. Click Apply, and on the Resource Adapters page, click Save.
  15. In the Servers view, right click WebSphere Application Server, and select Add and remove projects. Select IMSInboundEar, and click Add. Click Finish. Your application is now published to the server.

Results

To learn how to trigger events on the IMS server, see http://www.ibm.com/support/docview.wss?rs=81&uid=swg27014351

What to do next

Once the event is triggered from the IMS server, the following output displays on the console:
[2/17/09 13:52:11:787 EST] 00000015 SystemOut     O Synchronous callout request from IMS to WebSphere MDB
[2/17/09 13:52:11:787 EST] 00000015 SystemOut     O HELLO FROM IMS                                    
[2/17/09 13:52:11:787 EST] 00000015 SystemOut     O Synchronous callout response from WebSphere MDB to IMS

Feedback