Results 1 to 2 of 2

Thread: jms:inbound-gateway simple questions

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Default jms:inbound-gateway simple questions

    Am trying to understand someone's code. <jms:inbound-gateway has a "reply-channel" attribute. How does this help?

    -Adnan Qazi

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,145

    Default

    A downstream component can explicitly route a message to that channel - as long as the message has a replyChannel header - the reply-channel on the gateway simply bridges to the header channel.

    This is normally not needed; if the ultimate consumer (last element in the flow) does not declare an output-channel, the framework will route the output to the header replyChannel.

    It's normally only necessary to declare a reply-channel if you want to do something extra (such as logging, wire-tapping, or making the reply-channel a publish-subscribe-channel).

    Many people often declare, and route to, a reply-channel when it's not needed; this doesn't hurt anything, but is not really necessary.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •