[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: ProfileService shutdown and undeploy order
scott.stark@jboss.org
do-not-reply at jboss.com
Fri Jan 25 13:02:12 EST 2008
"adrian at jboss.org" wrote :
| This can obviously be fixed, but I guess what should really be happening
| is the ProfileService undeploys in reverse order of stages,
| i.e. APPLICATION then DEPLOYER then BOOTSTRAP.
|
| The MainDeployer.shutdown() should just be there to catch things
| that don't undeploy themselves properly.
|
| The problem is that the Profile api doesn't guarantee any ordering
|
| | Collection<VFSDeployment> getDeployments(DeploymentPhase phase) throws Exception;
| |
|
Certainly the phases should be undeployed in reverse order. If needed the deployments api could express ordering using a List, but should that be necessary? If it started correctly it should stop correctly unless new dependencies are being accessed during shutdown.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123624#4123624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123624
More information about the jboss-dev-forums
mailing list