[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Management removing all messages on shutdown
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Aug 15 09:47:42 EDT 2008
We just need the shutdown hook on JBMBootstrapServer somehow stopping deployments instead of undeploying them. That would give us the differentiation we need:
| public void shutDown()
| {
| log.info("Shutting down");
| ListIterator<KernelDeployment> iterator = deployments.listIterator(deployments.size());
| while (iterator.hasPrevious())
| {
| KernelDeployment deployment = (KernelDeployment) iterator.previous();
| try {undeploy(deployment);} catch (Throwable ignored){}
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170761#4170761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170761
More information about the jboss-dev-forums
mailing list