Retrieving IMS callout messages by using a
message-driven bean
About this task
To retrieve IMS callout messages by using an
MDB:
Procedure
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.
Import the IMS application source file into the
IDE.
Use the J2C wizard to generate data bindings for handling the callout requests and
messages.
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
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)
Deploy the MDB on WebSphere Application Server by using
the WebSphere Application Server administrative console.
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.