Results 1 to 2 of 2

Thread: output channel & default output channel for xpath router

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    16

    Default output channel & default output channel for xpath router

    How do you specify an output channel for xpath-router when the xpath expression is met. And when the condition is not met, how can I specify one or more channels to be the recipients

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    If I understand your question correctly then all you need is channel-resolver. If you look at the XML examples (BookOrderProcessingSample). In this example MapBasedChannelResolver is used which does exactly what you are asking, by routing to different channels based on true/false evaluation of XPath expression
    Code:
    . . . .
    <map>
    	<entry key="true" value-ref="warehouseDispatchChannel" />
    	<entry key="false" value-ref="outOfStockChannel" />
    </map>
    . . . .

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
  •