Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Messaging resources > Program to use asynchronous messaging > Program for interoperation with WebSphere MQ
Design an application for interoperation with WebSphere MQ
Overview
To design an application to interoperate with queue managers in a WebSphere MQ network...
- Identify the WebSphere MQ queues with which applications will interoperate.
- Consider the differences between the two environments
- Design your JMS client based on the Java EE pattern
- Identify any name-handling incompatibilities between the service integration bus and WebSphere MQ environments
- Define the topic mappings
Procedure
- Review...
- Map additional MQRFH2 header fields in service integration.
- How service integration converts messages to and from WebSphere MQ format
- Map additional MQRFH2 header fields in service integration.
- WebSphere MQ functions not supported by service integration.
- Design your JMS client based on the typical Java EE pattern:
- Use JNDI to find a ConnectionFactory object.
- Use JNDI to find one or more Destination objects.
- Use the connection factory to create a JMS Connection object.
- Use the JMS connection to create one or more JMS Session objects.
- Use a JMS session and the destinations to create the MessageProducer and MessageConsumer objects.
- Start delivery of messages by starting the JMS connection.
At this point a client has the basic JMS setup needed to produce and consume messages.
- Identify any name-handling incompatibilities between the SIB and WebSphere MQ environments.
If necessary, identify alias requirements, so that the WebSphere MQ application can handle SIB destination names of greater than 48 characters.
- Identify any reply destinations that are used by the application and check them for name-handling incompatibilities.
- If the application publishes messages to be forwarded to WebSphere MQ brokers, work with your administrator to define appropriate topic mappings on a publish/subscribe broker profile. We must also define topic mappings for any permanent reply topics.