Re: Shut down an embedded broker defined in Spring context

2008-11-05 Thread hanson2010
Thanks Gary. After turning on log output, I found that ActiveMQ's shutdown hook was enabled by default. So it can close itself down whenever the host application simply exited. No worry for now. :) Gary Tully wrote: > > add an id attribute to the amq:broker bean and get a handle on the > bean

Re: Shut down an embedded broker defined in Spring context

2008-11-04 Thread Gary Tully
add an id attribute to the amq:broker bean and get a handle on the bean using your spring context, then call shutdown on it. for logging, see: http://activemq.apache.org/how-can-i-enable-detailed-logging.html 2008/11/4 hanson2010 <[EMAIL PROTECTED]>: > > Spring context configuration is as below..