My app with activemq client is running inside tomcat. When tomcat is halted, the app does not exit. running jstack against the pid reveals that app shutdown is blocking waiting for the activemq connection to stop(). The jstack output is below.
What are possible reasons ActiveMQConnection.stop() might block? thanks for any insight. ------ Thread [EMAIL PROTECTED]: (state = BLOCKED) - java.lang.Object.wait(long) @bci=1266658595 (Interpreted frame) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame) - org.apache.activemq.thread.PooledTaskRunner.shutdown() @bci=34, line=89 (Interpreted frame) - org.apache.activemq.ActiveMQSessionExecutor.stop() @bci=28, line=117 (Interpreted frame) - org.apache.activemq.ActiveMQSession.stop() @bci=46, line=1466 (Interpreted frame) - org.apache.activemq.ActiveMQConnection.stop() @bci=44, line=495 (Interpreted frame) - ttm.message.ConsumerContainer.stop() @bci=12, line=158 (Interpreted frame) - ttm.message.ConsumerContainerServlet.destroy() @bci=36, line=41 (Interpreted frame) - org.apache.catalina.core.StandardWrapper.unload() @bci=173, line=1316 (Interpreted frame) - org.apache.catalina.core.StandardWrapper.stop() @bci=49, line=1651 (Interpreted frame) - org.apache.catalina.core.ContainerBase.removeChild(org.apache.catalina.Container) @bci=85, line=892 (Int erpreted frame) - org.apache.catalina.core.StandardContext.removeChild(org.apache.catalina.Container) @bci=25, line=3058 ( Interpreted frame) - org.apache.catalina.startup.ContextConfig.stop() @bci=52, line=1083 (Interpreted frame) - org.apache.catalina.startup.ContextConfig.lifecycleEvent(org.apache.catalina.LifecycleEvent) @bci=173, l ine=271 (Interpreted frame) - org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(java.lang.String, java.lang.Object) @bci=68 , line=119 (Interpreted frame) - org.apache.catalina.core.StandardContext.stop() @bci=175, line=4288 (Interpreted frame) - org.apache.catalina.core.ContainerBase.removeChild(org.apache.catalina.Container) @bci=85, line=892 (Int erpreted frame) - org.apache.catalina.startup.HostConfig.undeployApps() @bci=74, line=1159 (Interpreted frame) - org.apache.catalina.startup.HostConfig.stop() @bci=28, line=1131 (Interpreted frame) - org.apache.catalina.startup.HostConfig.lifecycleEvent(org.apache.catalina.LifecycleEvent) @bci=151, line =312 (Interpreted frame) - org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(java.lang.String, java.lang.Object) @bci=68 , line=119 (Interpreted frame) - org.apache.catalina.core.ContainerBase.stop() @bci=60, line=1053 (Interpreted frame) - org.apache.catalina.core.ContainerBase.stop() @bci=118, line=1065 (Interpreted frame) - org.apache.catalina.core.StandardEngine.stop() @bci=1, line=447 (Interpreted frame) - org.apache.catalina.core.StandardService.stop() @bci=148, line=512 (Interpreted frame) - org.apache.catalina.core.StandardServer.stop() @bci=65, line=714 (Interpreted frame) - org.apache.catalina.startup.Catalina.stop() @bci=39, line=586 (Interpreted frame) - org.apache.catalina.startup.Catalina.start() @bci=154, line=561 (Interpreted frame) - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Objec t[]) @bci=0 (Interpreted frame) - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=39 (Inte rpreted frame) - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=25 (I nterpreted frame) - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=111, line=585 (Interpreted fr ame) - org.apache.catalina.startup.Bootstrap.start() @bci=31, line=275 (Interpreted frame) - org.apache.catalina.startup.Bootstrap.main(java.lang.String[]) @bci=158, line=413 (Interpreted frame) -- View this message in context: http://www.nabble.com/ActiveMQConnection.stop%28%29-hanging-forever--tf4139230s2354.html#a11773897 Sent from the ActiveMQ - User mailing list archive at Nabble.com.