Announcement Announcement Module
Collapse
No announcement yet.
Question on "routing"... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question on "routing"...

    I'm re-reading the documentation to see if I can find the answer, but if anyone has any thoughts/suggestions in the meantime...

    I'm trying to redistribute a message to multiple channels based on a header property.

    Message comes into "incoming channel", if the header value "foo" has a value of "a" then send the message to the "a-channel-one" and "a-channel-two". If the header value is "bar" then send the message to "b-channel".

    I feel like I'm looking for an "router" or "filter"...

    Again I'm reading up on it now, but if anyone feels like stating the obvious I'd appreciate it.

    thanks,

    John

  • #2
    You can use recipient-list-router with selector expression
    Code:
    <int:recipient-list-router input-channel="routingChannel">
    	<int:recipient channel="a-channel-one" selector-expression="headers.foo.equals('a')"/>
    	<int:recipient channel="a-channel-two" selector-expression="headers.foo.equals('a')"/>
    </int:recipient-list-router>

    Comment


    • #3
      Thank you very much... that looks like what I need.

      John

      Comment

      Working...
      X