On Sat, Mar 31, 2012 at 12:55 PM, mgiammarco <mgiamma...@gmail.com> wrote: > > Claus Ibsen-2 wrote >> >> Hi >> >> Sometimes you can also just use a bean method, and from there use the >> ProducerTemplate to send your messages wherever you want, and you can >> send multiple messages to X different endpoints etc. And you don't >> have to wait for replies as you can send the messages as one-way etc. >> >> > I have not yet bought the book unfortunately. But looking at your reply it > seems different to my situation. > > I am in the middle of a route, I am not an "outside" thread that inject > messages in an already built route. > > Do you mean that inside a routed bean ( to("bean:foo") ) I can use producer > template? >
Yes you can use a producer template from anywhere you want. > Now my solution is this: the bean put a list of destinations in an header > that is then used by recipientlist() > > -- > View this message in context: > http://camel.465427.n5.nabble.com/RecipientList-without-aggregation-tp5601505p5608610.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/