Retrieving IMS callout messages by using a message-driven bean

About this task

To retrieve IMS callout messages by using an MDB:

Procedure

  1. Generate the data binding and an MDB by using IBM® Rational® Application Developer for WebSphere® Software or other integrated development environments (IDEs) that include the J2C tools.
    1. Import the IMS application source file into the IDE.
    2. Use the J2C wizard to generate data bindings for handling the callout requests and messages.
  2. Implement the com.ibm.j2ca.ExtendedInboundListener interface to listen to callout messages.
    • Implement the onMessage() method for synchronous callout requests.
    • Implement the onNotification() method for asynchronous callout request messages
  3. Configure a J2C activation specification (an instance of the IMSActivationSpec class) in WebSphere Application Server, and specify, at a minimum, a value for the following properties to listen for callout requests:
    • Host name
    • Port number
    • Data store name
    • Queue names (a comma-delimited list of tpipes)
  4. Deploy the MDB on WebSphere Application Server by using the WebSphere Application Server administrative console.
    1. At the Bind listeners for message-driven beans panel in the administrative console, enter the JNDI name of the J2C activation specification that you configured previously.
    2. Start the MDB application.