[
https://jira.jboss.org/jira/browse/JBAS-5328?page=com.atlassian.jira.plug...
]
Dimitris Andreadis updated JBAS-5328:
-------------------------------------
Fix Version/s: JBossAS-5.0.1.CR1
(was: JBossAS-5.0.0.CR2)
Better signalling of shutdown
-----------------------------
Key: JBAS-5328
URL:
https://jira.jboss.org/jira/browse/JBAS-5328
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: MicroContainer bus
Reporter: Adrian Brock
Assignee: Adrian Brock
Fix For: JBossAS-5.0.1.CR1
Currently within the shutdown we generally just do something like
AtomicBoolean shutdown = new AutomaticBoolean(false);
public void shutdown()
{
while (still deployments)
removeDeployments();
shutdown.set(true);
}
public void deploy()
{
if (shutdown.get())
throw new IllegalStateException("Already shutdown");
}
This needs improving to
1) Have a prepareShutdown() so we can signal that new deployments are not allowed
earlier
2) The IllegalStateException should be replaced with a ShutdownException such that the
caller
can ignore such errors and deal with the shutdown more gracefully
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira