Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-25 Thread Claus Ibsen
Hi Created a ticket for better graceful shutdown in Camel https://issues.apache.org/activemq/browse/CAMEL-1483 On Wed, Mar 25, 2009 at 11:06 AM, Claus Ibsen wrote: > On Wed, Mar 25, 2009 at 10:49 AM, James Strachan > wrote: >> 2009/3/25 Claus Ibsen : >>> On Wed, Mar 25, 2009 at 10:02 AM, James

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-25 Thread Claus Ibsen
On Wed, Mar 25, 2009 at 10:49 AM, James Strachan wrote: > 2009/3/25 Claus Ibsen : >> On Wed, Mar 25, 2009 at 10:02 AM, James Strachan >> wrote: >>> We maybe need to introduce some clean shutdown mechanism into >>> consumers; so we can tell all the consumers we're about to shutdown; >>> then they

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-25 Thread James Strachan
2009/3/25 Claus Ibsen : > On Wed, Mar 25, 2009 at 10:02 AM, James Strachan > wrote: >> We maybe need to introduce some clean shutdown mechanism into >> consumers; so we can tell all the consumers we're about to shutdown; >> then they can gracefully stop processing the current route's message - >>

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-25 Thread Claus Ibsen
On Wed, Mar 25, 2009 at 10:02 AM, James Strachan wrote: > We maybe need to introduce some clean shutdown mechanism into > consumers; so we can tell all the consumers we're about to shutdown; > then they can gracefully stop processing the current route's message - > then we actually stop the consum

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-25 Thread James Strachan
We maybe need to introduce some clean shutdown mechanism into consumers; so we can tell all the consumers we're about to shutdown; then they can gracefully stop processing the current route's message - then we actually stop the consumers (then the endpoints & components etc). Stopping routes midway

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-24 Thread Claus Ibsen
On Tue, Mar 24, 2009 at 3:42 PM, Markus Reil wrote: > > Hi, > > thanks for your help. > But I am still experiencing the same problem. The sleep does not get > interrupted (2.0-M1). > Do you have any idea why this happens? Let me know if you need more > information. Can you show the complete route?

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-24 Thread Markus Reil
Hi, thanks for your help. But I am still experiencing the same problem. The sleep does not get interrupted (2.0-M1). Do you have any idea why this happens? Let me know if you need more information. Thanks, Markus -- View this message in context: http://www.nabble.com/Delayer%3A-%22Transport-di

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-16 Thread Claus Ibsen
On Mon, Mar 16, 2009 at 3:34 PM, Markus Reil wrote: > > > > Claus Ibsen-2 wrote: >> >> Which version of Camel are you using? >> >> And are you sure there is a message in delay in Camel, while you shutdown? >> >> Are you also using JMS? >> > > I'm using 1.5.0 at the moment and I'm sure the message

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-16 Thread Markus Reil
Claus Ibsen-2 wrote: > > Which version of Camel are you using? > > And are you sure there is a message in delay in Camel, while you shutdown? > > Are you also using JMS? > I'm using 1.5.0 at the moment and I'm sure the message is in delay: [15:27:03.598] [DEBUG] [DelayRoutes] Save exchange

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-16 Thread Claus Ibsen
On Mon, Mar 16, 2009 at 2:21 PM, Markus Reil wrote: > > Hi, > > I enabled DEBUG loggin for camel and I cannot see the "Sleep interrupted" > log from DelayerProcessorSupport. Which version of Camel are you using? And are you sure there is a message in delay in Camel, while you shutdown? Are you a

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-16 Thread Markus Reil
Hi, I enabled DEBUG loggin for camel and I cannot see the "Sleep interrupted" log from DelayerProcessorSupport. Cheers, Markus -- View this message in context: http://www.nabble.com/Delayer%3A-%22Transport-disposed%22-at-JVM-Shutdown-tp22202167p22538055.html Sent from the Camel - Users (activ

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-16 Thread Claus Ibsen
On Mon, Mar 16, 2009 at 1:48 PM, Markus Reil wrote: > > Hi, > > thanks for your reply. > > > Claus Ibsen-2 wrote: >> >> If you do NOT way any error handling in camel just set the error >> handler to no error handler :) >> Yeah maybe we need a nicer DSL for disabling it >> >> errorHandler(noErrorHa

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-16 Thread Markus Reil
Hi, thanks for your reply. Claus Ibsen-2 wrote: > > If you do NOT way any error handling in camel just set the error > handler to no error handler :) > Yeah maybe we need a nicer DSL for disabling it > > errorHandler(noErrorHandler()); > That works. Thanks. Claus Ibsen-2 wrote: > >> Setti

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-13 Thread Claus Ibsen
On Fri, Mar 13, 2009 at 5:56 PM, Markus Reil wrote: > > Hi, > > does anyone have an idea here please? I tried to configure a global > errorHandler like > errorHandler(loggingErrorHandler("com.kekaya.activemq")); > or > errorHandler(deadLetterChannel("direct:err").maximumRedeliveries(0)); > but the

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-13 Thread Markus Reil
Hi, does anyone have an idea here please? I tried to configure a global errorHandler like errorHandler(loggingErrorHandler("com.kekaya.activemq")); or errorHandler(deadLetterChannel("direct:err").maximumRedeliveries(0)); but the Exception still gets processed by camel's default DeadLetterChannel.

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-02-28 Thread Claus Ibsen
Hi I got it now. Will commit a fix soon. Thanks for reporting. On Wed, Feb 25, 2009 at 2:16 PM, Claus Ibsen wrote: > On Wed, Feb 25, 2009 at 1:52 PM, Markus Reil wrote: >> >> Hi, >> >> I frequently get a "Transport disposed" error for delayed messages when I >> shutdown Tomcat. >> My route is c

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-02-25 Thread Claus Ibsen
On Wed, Feb 25, 2009 at 1:52 PM, Markus Reil wrote: > > Hi, > > I frequently get a "Transport disposed" error for delayed messages when I > shutdown Tomcat. > My route is configured like this: > from(queue).delayer(3L).bean(customRouterBean).recipientList(HEADER_TARGET_ROUTE); > Depending on s

Delayer: "Transport disposed" at JVM-Shutdown

2009-02-25 Thread Markus Reil
Hi, I frequently get a "Transport disposed" error for delayed messages when I shutdown Tomcat. My route is configured like this: from(queue).delayer(3L).bean(customRouterBean).recipientList(HEADER_TARGET_ROUTE); Depending on some internal state my customRouterBean decides where the message go