Re: Multiple consumers getting created in custom endpoint

2009-04-20 Thread Willem Jiang
>> -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 >> >>

Re: Multiple consumers getting created in custom endpoint

2009-04-09 Thread Willem Jiang
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 spawning threads. > > See for instance the SedaConsumer > https://svn.apache.org/repos/asf

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

RE: Multiple consumers getting created in custom endpoint

2009-04-07 Thread Manish K Bafna
The same is visible in JMS component too. Steps: 1. Create a route from JMS topic1 to JMS queue1 2. Start the context 3. Send 1 message to the topic. 4. The queue will also receive 1 message. 5. Stop the context 6. Start the context again 7. Send 1 message to the topic. 8. the same message wil