camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sprabu <sathiyapr...@gmail.com>
Subject How do i read the xml element values from the xml payload and have to pass those values to sql query.
Date Tue, 18 Dec 2012 16:09:10 GMT
Hi,
I'm getting messages from route and want to insert xml payload values in
sql. 
<from uri=queue:com.test.Queue1>
<to uri="sql:insert into MY_TABLE
values(${in.header.MessageId},//Element1,//Element2)" />
....

Also i want to pass the jms message id to the sql query. 
How do i read the xml element values from the xml payload and have to pass
those values to sql query?
This should be done in the spring xml dsl.

Thanks in advance.



--
View this message in context: http://camel.465427.n5.nabble.com/How-do-i-read-the-xml-element-values-from-the-xml-payload-and-have-to-pass-those-values-to-sql-query-tp5724291.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message