Skip to content

Instantly share code, notes, and snippets.

@dfeist
Created March 14, 2011 13:28
Show Gist options
  • Save dfeist/869111 to your computer and use it in GitHub Desktop.
Save dfeist/869111 to your computer and use it in GitHub Desktop.
<flow name="choiceFlow">
<description>
Flow that shows the use of the choice element for content-based routing
</description>
<jms:inbound-endpoint queue="in"/>
<choice>
<when expression="/element/@name = 'foo'" evaluator="xpath">
<jms:inbound-endpoint queue="fooQueue"/>
</when>
<when expression="/element/@name = 'bar'" evaluator="xpath">
<jms:inbound-endpoint queue="barQueue"/>
</when>
<otherwise>
<jms:inbound-endpoint queue="DeadLetterQueue"/>
</otherwise>
</choice>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment