On 03/31/2014 04:38 PM, mtod wrote:
I would like to perform a Camel route based on an xpath value in an XML
message.

The XML Message example:

<xmlMessage>
        <header>
                <version>1</version>                
                <msgType>Event</msgType>    
                <source>App1<source>                
                <route>topic.A</route>
                <destination>AppA</destination>
        </header>
        <payload/>
</xmlMessage>

ActiveMQ example:

<camelContext id="TrackingRoute"
xmlns="http://camel.apache.org/schema/spring";>
        <route>
                <from uri="activemq:queue:queue.incoming"/>                     
                <filter>
                        <to uri="activemq:topic:topic.${topicUri}"/>    
                </filter>
     </route>
</camelContext>

Is it possible to query the XML using an xpath expression to return the
destination value to a variable then use that to define the to uri?

Thanks

Mike



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Camel-routing-based-on-an-xpath-value-in-an-XML-message-tp4679753.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

You should direct that to the Camel mailing lists, this is for AMQ questions.
https://camel.apache.org/mailing-lists.html

--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.b...@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to