Use XPath or XQuery along with the dynamic recipient list...
http://activemq.apache.org/camel/recipient-list.html
from(...).recipientList().xpath("/service");
2008/7/21 pratibhaG <[EMAIL PROTECTED]>:
>
> I have following message:
> <error><req>rrrrr</req><service>http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorService</service></error>
> Here I want to send <req>rrrrr</req> to a service given in
> <service>http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorService</service>
>
> How can I extract
> <service>http://servicemix.in2m.com/operations/updateprofile/ResolvedErrorService</service>
> on the path and set it as a destination for message <req>rrrrr</req> . I am
> using splitter for extracting <req>rrrrr</req>.
>
> Pratibha
>
> --
> View this message in context:
> http://www.nabble.com/how-to-get-contents-form-xml-message-within-the-route-tp18563019s22882p18563019.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com