I was able to get this to work using the following:
ActiveMQ XMl:
<camelContext id="TRFTrackingRoute"
xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="activemq:queue:queue.ESB.incoming"/>
<setHeader headerName="Route1">
<xpath
resultType="String">/FMIMessage/Header1/Dest/text()</xpath>
</setHeader>
<recipientList delimiter="false">
<header>Route1</header>
</recipientList>
</route>
</camelContext>
Message:
<FMIMessage version="1.0" MsgID="1804343574">
<Header1>
<Source>Pipeline</Source>
<AppVersion>1.1</AppVersion>
<Dest>activemq:topic:trftracking</Dest>
</Header1>
<Event/>
</FMIMessage>
Thanks for the insight.
Mike
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-routing-based-on-an-xpath-value-in-an-XML-message-tp5749578p5749642.html
Sent from the Camel - Users mailing list archive at Nabble.com.