camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onders <ondersezgin+camelu...@gmail.com>
Subject Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component
Date Thu, 07 Apr 2016 04:44:36 GMT
Hi,

This is the route code.

		from("sql:select rowid vrow_id from myTable where nstatus = 0" +
MyBean.class.getName()
				+ "&onConsume=update myTable set nstatus = 1 where VROW_ID =
:#${body.vrow_id}")
						.routeId("mySimpleRoute").threads(5).to("direct:generateLine").end();


In the following from("direct:generateLine"), I apply bean-binding and send
myBean.toString() to a file...

Thanks again 



--
View this message in context: http://camel.465427.n5.nabble.com/DefaultSqlPrepareStatementStrategy-lookupParameter-when-onConsume-used-in-SQL-component-tp5780437p5780624.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message