Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.