-
-
Save rossmason/873919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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:outbound-endpoint queue="fooQueue"/> | |
</when> | |
<when expression="/element/@name = 'bar'" evaluator="xpath"> | |
<jms:outbound-endpoint queue="barQueue"/> | |
</when> | |
<otherwise> | |
<jms:outbound-endpoint queue="DeadLetterQueue"/> | |
</otherwise> | |
</choice> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment