FileDocCategorySizeDatePackage
Shutdown.javaAPI DocGlassfish v2 API3621Fri May 04 22:35:42 BST 2007com.sun.enterprise.server

Shutdown

public class Shutdown extends Object implements com.sun.enterprise.admin.event.ShutdownEventListener
Listener to handle shutdown event.

Fields Summary
static Logger
_logger
logger for this manager
Constructors Summary
Methods Summary
public voidstartShutdown(com.sun.enterprise.admin.event.ShutdownEvent event)
Start shutdown on this instance.

throws
AdminEventListenerException when the listener is unable to process the event.


                                 
       
              
	
	try {
		PEMain.getApplicationServer().onShutdown();
		PEMain.getApplicationServer().onTermination();
		
	} catch (ServerLifecycleException e) {
	    _logger.log(Level.SEVERE,"shutdown.error",e.getMessage());
	}

    AuditManager auditManager =
        AuditManagerFactory.getAuditManagerInstance();

    if (auditManager.isAuditOn()){
        auditManager.serverShutdown();
    }

	J2EEServer.shutdown();
	_logger.log(Level.FINE, "finished calling J2EEServer.clientShutdown()..");