Results 1 to 2 of 2

Thread: header-value-router

  1. #1

    Default header-value-router

    I'm using SI 1.3
    I'm trying to use the header value router to do the following:
    If a message comes in with a header value of "specificValue" for head "specificHeader", I want to route to a "one-off-channel". If a message comes in with a header value other than "specificValue" for the "specificHeader" I want it to go to the normalFlowChannel

    I have this:
    <header-value-router
    input-channel="incomingChannel"
    header-name="specificHeader"
    default-output-channel="normalFlowChannel">
    <mapping
    value="specificValue"
    channel="one-off-channel" />
    </header-value-router>

    I thought the default-output-channel would take over if the incoming message had a specificHeader value of something other than specificValue but that does not seem to be the case.

    If a message comes in with a specificHeader value of specificValue than the message gets routed properly.

    However, if a message comes in with a specificHeader value of something other than specificValue, the message does not get routed anywhere.

    Also, what is the timeout parameter for in the header-value-router?

  2. #2

    Default

    I added ignore-channel-name-resolution-failures="true" to the header-value-router and then things worked as I expected.

Tags for this Thread

Posting Permissions

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