camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: ProducerTemplate and cponnent camel-sql
Date Fri, 25 Mar 2011 18:49:34 GMT
On Tue, Mar 22, 2011 at 6:36 PM, Charles Moulliard <cmoulliard@gmail.com> 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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message