Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-14 Thread Rob Davies
Hi Fred, thanks for raising the issue - the book is nearly complete - but will see if we can fit it in thanks, Rob On 14 Jan 2010, at 15:45, Fred Moore wrote: Hi Rob, thanks for your help so far, I created http://issues.apache.org/activemq/browse/AMQ-2568 "Embedded broker not shutting dow

Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-14 Thread Fred Moore
Hi Rob, thanks for your help so far, I created http://issues.apache.org/activemq/browse/AMQ-2568 "Embedded broker not shutting down cleanly because of lingering threads" for future reference. Also, please make sure that any relevant considerations stemming from this thread will be captured in Cha

Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-14 Thread Rob Davies
Hi Fred, I can confirm most of what you are seeing - will look at the best way to handle the scheduler case - might make more sense for it not to be static. The [Timer-0] thread - I'm not seeing that - though I'm working from trunk cheers, Rob On 14 Jan 2010, at 11:51, Fred Moore wrote:

Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-14 Thread Fred Moore
Hi Rob, FWIW here is the ThreadExplorer class: http://pastebin.com/f1aa2a099 > Do you actually call stop() on the broker ? Yes. > Have you disabled the shutdownHook from the broker ? No, we just did it but nothing has changed. In the meantime we experimented further and we were able to shutdown

Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-13 Thread Rob Davies
oops - sry Fred - read your first email too quick - could you post the ThreadExplorer class too ? thanks, Rob On 13 Jan 2010, at 22:24, Fred Moore wrote: Hi Rob, If you could post your code - or sample of it - might help identify why your main isn't shutting down I actually did... can yo

Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-13 Thread Fred Moore
Hi Rob, > If you could post your code - or sample of it - might help > identify why your main isn't shutting down I actually did... can you access this pastebin here: http://pastebin.com/f2784245a ? Cheers, F. On Wed, Jan 13, 2010 at 7:52 PM, Rob Davies wrote: > Do you actually call stop() o

Re: Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-13 Thread Rob Davies
Do you actually call stop() on the broker ? - Have you disabled the shutdownHook from the broker ? If you could post your code - or sample of it - might help identify why your main isn't shutting down On 13 Jan 2010, at 17:50, Fred Moore wrote: Hi folks, we have a 5.3.0 embedded broker that

Trivial embedded broker not shutting down cleanly because of lingering threads

2010-01-13 Thread Fred Moore
Hi folks, we have a 5.3.0 embedded broker that refuses to shutdown cleanly because of lingering threads. We reproduced this with a very very basic configuration: with just vm & jmx connectors, no producers and no consumers and and this extremely simple main() program: http://pastebin.com/f2784245