Results 1 to 3 of 3

Thread: Question on "routing"...

  1. #1
    Join Date
    Jul 2006
    Posts
    15

    Default 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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>

  3. #3
    Join Date
    Jul 2006
    Posts
    15

    Default

    Thank you very much... that looks like what I need.

    John

Posting Permissions

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