camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
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 <> 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
Twitter: davsclaus
Author of Camel in Action:

View raw message