[jboss-dev-forums] [JBoss AS 7 Development] - Server Shutdown Problem with HornetQ
Rob Cernich
do-not-reply at jboss.com
Thu Jan 12 22:21:39 EST 2012
Rob Cernich [https://community.jboss.org/people/rcernich] created the discussion
"Server Shutdown Problem with HornetQ"
To view the discussion, visit: https://community.jboss.org/message/646594#646594
--------------------------------------------------------------
Hey all,
Over in SwitchYard land we have a problem where the server hangs for 2-3 minutes during shutdown when a SwitchYard application references a queue. If the SwitchYard application is undeployed before shutting down the server, all is well.
The problem appears to be caused by the messaging system shutting down before the application, which is still holding on to the queues. (The "HornetQ cannot delete ... it has consumers" exception is thrown during shutdown.) I've tried various things to inject a service dependency on the SwitchYard application service, but nothing seems to work (e.g. adding a dependency on the JNDI binding for the queues, the messaging system itself, adding a application-client.xml to the SwitchYard application, etc.).
At this point, I'm at a total loss as to how to proceed. Is there any way to ensure the messaging system is stopped after the deployment has stopped?
Any help greatly appreciated.
Thanks in advance,
Rob
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646594#646594]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120112/94cd6a26/attachment.html
More information about the jboss-dev-forums
mailing list