Re: How to get this done in Camel

2012-05-16 Thread James Carman
Are you wanting to use the exact same values every time? Are you using Spring? On Tue, May 15, 2012 at 9:02 AM, Rocco Gallo Citera wrote: > You can have a bean that is a factory for the dynamic bean. For the > parallel processing, you might want to take a look at the EIP, you > could find it use

Re: How to get this done in Camel

2012-05-15 Thread Rocco Gallo Citera
You can have a bean that is a factory for the dynamic bean. For the parallel processing, you might want to take a look at the EIP, you could find it useful ;-) On Tue, May 15, 2012 at 9:11 AM, Christian Schneider wrote: > That depends what you mean by configure. You can not create the bean every

Re: How to get this done in Camel

2012-05-15 Thread Christian Schneider
That depends what you mean by configure. You can not create the bean every time and call the constructore with values from the message. What you can do is call a method of the bean with e.g. header values from the message. See: http://camel.apache.org/bean-binding.html Christian Am 15.05.201

Re: How to get this done in Camel

2012-05-15 Thread soumya_sd
Christian Schneider wrote > > You can´t really dynamically create the bean using camel DSL. It will > always be created at the time the route is added to camel. > Of course you can have one "singleton" bean that then creates the other > bean in java code. > > > @Christian - what I meant was

Re: How to get this done in Camel

2012-05-15 Thread soumya_sd
Willem.Jiang wrote > > > > How about the route like this > > from("direct:in").to("http://somewhere";).bean(mybean, "process").to("your > endpoint") > > You can store the parameter into the exchange property, and it will be > copied across the route. > > Thanks for confirming this. Is it p

Re: How to get this done in Camel

2012-05-15 Thread Christian Schneider
You can´t really dynamically create the bean using camel DSL. It will always be created at the time the route is added to camel. Of course you can have one "singleton" bean that then creates the other bean in java code. Christian Am 15.05.2012 06:02, schrieb soumya_sd: I've a route that 1. i

Re: How to get this done in Camel

2012-05-14 Thread Willem Jiang
Hi How about the route like this from("direct:in").to("http://somewhere";).bean(mybean, "process").to("your endpoint") You can store the parameter into the exchange property, and it will be copied across the route. On Tue, May 15, 2012 at 12:02 PM, soumya_sd wrote: > I've a route that > > 1.