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&...]