Code snippet for blog post: http://scattercode.co.uk/2013/01/15/playing-around-with-apache-camel/
<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