Announcement Announcement Module
Collapse
No announcement yet.
jms:inbound-gateway simple questions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment

    Working...
    X