13.4 Outbound Gateway

The outbound Gateway uses a QueueRequestor so that reply Messages will be automatically correlated. Notice that the "reply-channel" is also provided.

<jms:outbound-gateway id="jmsOutGateway"
                      jms-queue="outQueue"
                      request-channel="outboundJmsRequests"
                      reply-channel="jmsReplies"/>

[Note]Note
For all of these JMS adapters, you can also specify your own "message-converter" reference. Simply provide the bean name of an instance of MessageConverter that is available within the same ApplicationContext.