[jboss-jira] [JBoss JIRA] Assigned: (JBAS-5328) Better signalling of shutdown
Jason T. Greene (JIRA)
jira-events at lists.jboss.org
Tue Mar 24 15:34:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-5328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason T. Greene reassigned JBAS-5328:
-------------------------------------
Assignee: Ales Justin
> 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: Ales Justin
> Fix For: JBossAS-5.1.0.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
More information about the jboss-jira
mailing list