Apache ActiveMQ ™ -- Sample Camel Routes
Using ActiveMQ > User Submitted Configurations > Sample Camel Routes
Example of a configuration that show how to use Camel routes with Juel and Xpath.
${in.headers.JMSType.equals('foo')}
${in.headers.myHeaderField.equals('takeMe')}
${in.headers.JMSType.equals('bar')}
${in.headers.myHeaderField.equals('takeMe')}
${in.headers.myOtherHeaderField.equals('3')}
$JMSType = 'foo' and $myCustomHeader='takeMe'
$JMSType = 'bar' and $myCustomHeader='takeMe'
$JMSType = 'foo'
${in.headers.JMSType.equals('foo')}
${in.headers.JMSType.equals('foo')}
${in.headers.OperationRequest.equals('foo1')}
${in.headers.OperationRequest.equals('foo2')}
${in.headers.JMSType.equals('foo')}
/rootXMLBodyNode/childXMLBodyNode\[@myAttributeKey='myAttributeValue'\]
${in.headers.JMSType.equals('Tideworks.GateVision.XmlCmd')}
/rootXMLBodyNode/childXMLBodyNode/elementKey = 'elementValue'
${in.headers.JMSType.equals('foo')}
/rootXMLBodyNode/childXMLBodyNode\[@myAttributeKey='myAttributeValue'\]/grandchildXMLBodyNode\[@myAttributeKey='myAttributeValue'\]