camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Router <>
Subject POJO to DB
Date Wed, 05 Nov 2014 07:51:22 GMT

I have got a POJO which contains values for two sequential SQL inserts. How
can I achieve this?

I tried something like this, but it fails due to the fact that named query
parameters (:#column) just work for HashMaps. I cannot find any
documentation how to proceed with my POJO. The conversion of my POJO to a
HashMap feels wrong..

			<from uri="IncomingMessage:X:Y"/>
			<process ref="MyPOJOProcessor"/>
			<to uri="sql:{{sql.insertA}}"/>
			<to uri="sql:{{sql.insertB}}"/>

Unfortunatelly, I need to keep my insert statements configurable via spring. 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message