Re: RE: Multiple consumers getting created in custom endpoint

2009-04-09 Thread Claus Ibsen
nal Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Wednesday, April 08, 2009 8:39 PM > To: users@camel.apache.org > Subject: Re: RE: Multiple consumers getting created in custom endpoint > > Hi > > I would suggest to use the JDK concurrency stuff for spa

RE: RE: Multiple consumers getting created in custom endpoint

2009-04-08 Thread Manish K Bafna
clearing the route list during the stop of the context. Thanks, Manish. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Wednesday, April 08, 2009 8:39 PM To: users@camel.apache.org Subject: Re: RE: Multiple consumers getting created in custom endpoint Hi I

Re: RE: Multiple consumers getting created in custom endpoint

2009-04-08 Thread Claus Ibsen
Hi I would suggest to use the JDK concurrency stuff for spawning threads. See for instance the SedaConsumer https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/main/java/org/apache/camel/component/seda/SedaConsumer.java On Wed, Apr 8, 2009 at 4:53 PM, wrote: > I think you should "kill

Re: RE: Multiple consumers getting created in custom endpoint

2009-04-08 Thread bruno . borges
I think you should "kill" your threads on method doStop() or stop() of your consumer. They are invoked when CamelContext is stopped. Cheers, Bruno Borges On Apr 8, 2009 12:38am, Manish K Bafna wrote: The same is visible in JMS component too. Steps: 1. Create a route from JMS topic1 to