camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Camel XPath....Parsing a part of message Body...
Date Sun, 06 Apr 2014 00:09:26 GMT
Try following.

<from uri="jms:queue:Q.activemq1"/>
        <simple>Order with id ${in.body} received </simple>
 <to uri="jms:queue:Q.activemq2"/>

- Ravi
From: npa []
Sent: Saturday, April 05, 2014 12:15 AM
Subject: Camel XPath....Parsing a part of message Body...

I have a simple flow that reads from an activemq1 and parses an id from the
message and sends the id across to another activemq2.

Here is an example of message that gets written to activemq1:


I need to parse out the id from the above message body and send the below
message to activemq2:

"Order with id{123} has been queued"

This is the flow that I cameup with, but it writes the complete request xml
to the queue, but not the message that I am looking for:

<from uri="jms:queue:Q.activemq1"/>
 <to uri="jms:queue:Q.activemq2"/>

Anything wrong in the above

View this message in context:
Sent from the Camel - Users mailing list archive at
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information. If you are not the intended recipient(s),
please reply to the sender and destroy all copies of the original message. Any unauthorized
review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or
any action taken in reliance on the contents of this e-mail is strictly prohibited and may
be unlawful.

View raw message