[jboss-jira] [JBoss JIRA] Updated: (JBAS-5328) Better signalling of shutdown
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Tue Jun 3 09:48:56 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5328?page=all ]
Dimitris Andreadis updated JBAS-5328:
-------------------------------------
Fix Version/s: JBossAS-5.0.0.CR2
(was: JBossAS-5.0.0.CR1)
Pushing non-critical issues to the next CR2. If you think they are critical for CR1, please re-schedule them.
> Better signalling of shutdown
> -----------------------------
>
> Key: JBAS-5328
> URL: http://jira.jboss.com/jira/browse/JBAS-5328
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: MicroContainer bus
> Reporter: Adrian Brock
> Assigned To: Adrian Brock
> Fix For: JBossAS-5.0.0.CR2
>
>
> 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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list