Re: Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Christian Schneider
main/java/org/apache/camel/spring/CamelProducerTemplateFactoryBean.java https://svn.apache.org/repos/asf/camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelProducerTemplateFactoryBean.java Babak -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Pro

Re: Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Babak Vahdat
mponents/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelProducerTemplateFactoryBean.java Babak -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-ProducerTemplate-on-context-shutdown-tp5719525p5719533.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Christian Schneider
I think that is not necessary. I only wanted to check if it is normal behaviour or if we have a bug. Strangely it seemed to not hang in earlier versions. Not sure why though. Christian Am 18.09.2012 15:39, schrieb Claus Ibsen: As the templates (their default impls) is associated with a CamelCo

Re: Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Claus Ibsen
As the templates (their default impls) is associated with a CamelContext, we could eventually also add logic, to enlist the template in a list of active template stored on the camel context. So when camel context shutdown, it could shutdown the templates as well - as a fail safe. And if a client i

Re: Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Christian Schneider
Hi Claus, thanks for the clarification. It is also great to have this in Javadoc. Christian Am 18.09.2012 15:26, schrieb Claus Ibsen: On Tue, Sep 18, 2012 at 3:12 PM, Christian Schneider wrote: Hi all, we had a problem with the camel shutdown at a Talend ESB Camel example after updating to

Re: Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Claus Ibsen
On Tue, Sep 18, 2012 at 3:12 PM, Christian Schneider wrote: > Hi all, > > we had a problem with the camel shutdown at a Talend ESB Camel example after > updating to camel 2.10-SNAPSHOT. > > The example uses a ProducerTemplate with a camel jms producer that is > injected using an annotation: > @End

Problem with ProducerTemplate on context shutdown

2012-09-18 Thread Christian Schneider
Hi all, we had a problem with the camel shutdown at a Talend ESB Camel example after updating to camel 2.10-SNAPSHOT. The example uses a ProducerTemplate with a camel jms producer that is injected using an annotation: @EndpointInject ProducerTemplate producer; At the end of the example main