Network Deployment (Distributed operating systems), v8.0 > Applications > Messaging resources > Interoperation with WebSphere MQ > Interoperation using a WebSphere MQ link
Request-reply messaging through a WebSphere MQ link
When a JMS producer sends a message, it can provide a reply-to destination. The reply-to destination is a JMS destination defined using the producer's messaging provider. This style of messaging is known as request-reply, or request and response. Request-reply messages can be exchanged across the WebSphere MQ link as either point-to-point or publish/subscribe messages.
The following combinations are possible for request-reply exchanges:
- Publication messages (for publish/subscribe messaging).
- Queue type reply-to destination.
- Topic type reply-to destination. This can be a permanent reply-to topic, defined to the publish/subscribe bridge on the WebSphere MQ link, or a temporary topic reply, where the topic name is assigned at runtime.
- Point-to-point messages.
- Queue type reply-to destination.
- Topic type reply-to destination. The reply-to destination must be a permanent reply-to topic; you cannot have a temporary topic reply for a point-to-point request message.
When the producer is a WAS application that uses the default messaging provider, the reply-to destination is a service integration JMS destination that typically either points to a service integration queue, or comprises a topic string and a service integration topic space.
- If the reply-to destination is a service integration queue, it is normally a queue in the same bus as the WAS application, so that the WAS application can consume the reply message from that reply-to queue.
- If the reply-to destination is a topic and the consumer is a WebSphere MQ program, configure the publish/subscribe bridge to ensure that the reply message can be routed back to the service integration bus so that the WAS application can receive it. Note that although WebSphere MQ JMS applications can reply to a topic, most other WebSphere MQ applications cannot.
When the producer is a WebSphere MQ JMS application, the reply-to destination is a WebSphere MQ JMS destination that typically either points to a WebSphere MQ queue or is a topic string.
- If the reply-to destination is a WebSphere MQ queue, it is normally a queue in the queue manager, or shared queue in the queue-sharing group, that the WebSphere MQ application is using, so that the WebSphere MQ application can consume the reply message from that reply-to queue.
- If the reply-to destination is a topic and the consumer is a WAS application, configure the publish/subscribe bridge to ensure that the reply message can be routed back to WebSphere MQ so that the WebSphere MQ application can receive it.
Concept topic