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...

  1. Identify the WebSphere MQ queues with which applications will interoperate.
  2. Consider the differences between the two environments
  3. Design your JMS client based on the Java EE pattern

  4. Identify any name-handling incompatibilities between the service integration bus and WebSphere MQ environments
  5. Define the topic mappings


Procedure

  1. Review...

  2. Design your JMS client based on the typical Java EE pattern:

    1. Use JNDI to find a ConnectionFactory object.

    2. Use JNDI to find one or more Destination objects.

    3. Use the connection factory to create a JMS Connection object.

    4. Use the JMS connection to create one or more JMS Session objects.

    5. Use a JMS session and the destinations to create the MessageProducer and MessageConsumer objects.

    6. 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.

  3. 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.

  4. Identify any reply destinations that are used by the application and check them for name-handling incompatibilities.

  5. 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.

+

Search Tips   |   Advanced Search