< Previous | Next >

Lesson 4: Configure WebSphere Application Server and add project to the server

Lesson 4 leads you through the steps to configure WebSphere® Application Server and add your IMS™ inbound project to the server
Before you begin, you must completeLesson 3: Create a Java method.
In this lesson, you
  1. Click 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 v7.0 and select Start.
  3. Once the server is started, right click WebSphere Application Server v7.0 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 install directory, under <install_dir>/IBM/SDP/ResourceAdapters/ims15. Select imsico1030.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, Test.
    • In the JNDI name field, type a JNDI name, for example, IMSInbound:
      JNDI name
    Click Apply.
  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 type IVPPIPE4 for the Queue name, click Apply, and on the Resource Adapters page, click Save.
  15. In the Servers view, right click WebSphere Application Server v7.0 and select Add and remove projects. Select IMSInboundEar, and click Add. Click Finish. Your application is now published to the server.
To run the sample IMS callout application, run the IV_S228J job as described in the IV_S001T task. For more information about the IMS callout sample and the synchronous callout function, http://www.ibm.com/support/docview.wss?rs=81&uid=swg27014351
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
< Previous | Next >

Feedback