For the stack trace it looks normal. ActiveMQ is waiting for a response from the broker which may take a while. If it takes forever, it would be interesting to find out if the broker is remote or if the vm:// transport is being used.
Another way to resolve this is to have the Spring DefaultMessageListenerContainer use a deamon thread. Not sure if there is a way to configure that. Regards, Hiram On 6/5/07, Maxim Butov <[EMAIL PROTECTED]> wrote:
Hi. I discovered a problem that during shutdown ActiveMQ hangs up preventing JVM to exit. Stacktrace is below. Is it a bug or a bad configuration? Regards, Maxim INFO | jvm 1 | 2007/06/05 15:22:35 | Thread[listenerContainerBean-1,5,main] INFO | jvm 1 | 2007/06/05 15:22:35 | java.lang.Object.wait(Native Method) INFO | jvm 1 | 2007/06/05 15:22:35 | edu.emory.mathcs.backport.java.util.concurrent.locks.CondVar.await(CondVar.java:75) INFO | jvm 1 | 2007/06/05 15:22:35 | edu.emory.mathcs.backport.java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:318) INFO | jvm 1 | 2007/06/05 15:22:35 | org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:42) INFO | jvm 1 | 2007/06/05 15:22:35 | org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:75) INFO | jvm 1 | 2007/06/05 15:22:35 | org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1175) INFO | jvm 1 | 2007/06/05 15:22:35 | org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:1663) INFO | jvm 1 | 2007/06/05 15:22:35 | org.apache.activemq.ActiveMQMessageConsumer.close(ActiveMQMessageConsumer.java:542) INFO | jvm 1 | 2007/06/05 15:22:35 | org.springframework.jms.support.JmsUtils.closeMessageConsumer(JmsUtils.java:144) INFO | jvm 1 | 2007/06/05 15:22:35 | org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.clearResources(DefaultMessageListenerContainer.java:899) INFO | jvm 1 | 2007/06/05 15:22:35 | org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:865) INFO | jvm 1 | 2007/06/05 15:22:35 | java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/Probable-bug.-tf3871562s2354.html#a10968768 Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
-- Regards, Hiram Blog: http://hiramchirino.com
