[jboss-jira] [JBoss JIRA] Created: (JBAS-5328) Better signalling of shutdown

Adrian Brock (JIRA) jira-events at lists.jboss.org
Wed Mar 19 09:39:51 EDT 2008


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.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: 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