On Tue, Mar 22, 2011 at 6:36 PM, Charles Moulliard <[email protected]> wrote: > Is there a way to configure the camel producerTemplate in a bean to > use the SQL component configured in spring XML file >
Yep you can annotate the ProducerTemplate field with @Produce and then put in the endpoint uri. Then you just use sendBody(body); eg only 1 parameter. As the ProducerTemplate would then know where to send it already. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
