Skip to content

Instantly share code, notes, and snippets.

@stephen-masters
Created January 16, 2013 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephen-masters/4546092 to your computer and use it in GitHub Desktop.
Save stephen-masters/4546092 to your computer and use it in GitHub Desktop.
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="webspheremq:ANY.OPERATION.REQUEST" />
<choice>
<when>
<xpath>/REQUEST/HEADER[@OperationName='Old.Request']</xpath>
<to uri="activemq:OLD.REQUEST" />
</when>
<when>
<xpath>/REQUEST/HEADER[@OperationName='New.Request']</xpath>
<to uri="activemq:NEW.REQUEST" />
</when>
<otherwise>
<to uri="activemq:DEAD.LETTER.QUEUE" />
</otherwise>
</choice>
</route>
</camelContext>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment