Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread mtod09
I was able to get this to work using the following: ActiveMQ XMl: http://camel.apache.org/schema/spring";> /FMIMessage/Header1/Dest/text()

Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread mtod09
Thanks for the update. I'm still have issues updating the header. http://camel.apache.org/schema/spring";> /Header1/Dest/text()

Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread kraythe .
I think your xpath is wrong, try: /Header1/Dest/text() The easiest way to diagnose issues like these is split into two steps. First store the value from the xpath in a header and then pass the header to recipient list. That will allow you to use tracer to follow the flow. *Robert Simmons Jr. MSc

Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread mtod09
I'm having a problem getting the value from the Dest Element and using it in the recipient list. I don't get any errors but the message does not show up in the topics. I'm using an input queue "activemq:queue:queue.ESB.incoming" then it should route to 2 topics based on the Dest values. XML Messa

Re: Camel routing based on an xpath value in an XML message.

2014-03-31 Thread Christian Posta
why, yes it is possible :) You can use an xpath expression to get the value of the node you like.. then use a recipient list or dynamic router to get it to the queue/topic you like: http://camel.apache.org/recipient-list.html On Mon, Mar 31, 2014 at 2:33 PM, mtod09 wrote: > I would like to per