Hi I got it now. Will commit a fix soon. Thanks for reporting.
On Wed, Feb 25, 2009 at 2:16 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > On Wed, Feb 25, 2009 at 1:52 PM, Markus Reil <gistenju...@gmx.de> 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(30000L).bean(customRouterBean).recipientList(HEADER_TARGET_ROUTE); >> Depending on some internal state my customRouterBean decides where the >> message goes. >> >> When I shutdown Tomcat while a message is being delayed the router cannot >> deliver the message finally because a queue (or the broker?) isn't available >> anymore. >> >> Can I find out in the router if a queue is still usable? >> And is it possible to interrupt the delay at this point because delaying the >> message also delays the server shutdown? >> >> Thanks in advance for any help. > Hi can you enable DEBUG logging for org.apache.camel > > And check when you shutdown and having a message delayed that this is logged: > LOG.debug("Sleep interupted: " + e, e); > > For me it looks like when intercepted while slepping we could let > Camel does something smarter than logging as above. > > >> >> Cheers, >> Markus >> >> -- >> View this message in context: >> http://www.nabble.com/Delayer%3A-%22Transport-disposed%22-at-JVM-Shutdown-tp22202167p22202167.html >> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com. >> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/