AMQP client submitting requests to and consuming responses from an application server

An MQ Light or other AMQP client can submit requests to a message-driven bean running in an application server and consume responses from a reply topic. IBM MQ supports AMQP 1.0 applications setting a reply-to topic in the messages that IBM MQ publishes. When an AMQP message is published with the reply-to attribute set, the value of the reply-to field is set as a JMS property for JMS consumers to receive. This setting allows JMS consumers to read the reply-to topic from the message and send a response message back to the AMQP client.

The JMS property is JMSReplyTo. The AMQP reply-to string must be one of the following types:

  • A topic string. For example, 'reply/topic'
  • An AMQP address URL in the form amqp://host:port/[topic-string]. For example, amqp://localhost:5672/reply/topic

If you specify an AMQP address URL as the reply-to field, everything except the topic-string at the end of the URL is removed before setting the JMSReplyTo property.

For more information about the mappings from an AMQP reply-to address to a JMSReplyTo property, see Mapping AMQP fields onto IBM MQ fields (incoming messages)

Parent topic: Topologies for AMQP clients with IBM MQ


Related information