FileDocCategorySizeDatePackage
WebContainerLifecycle.javaAPI DocGlassfish v2 API3749Fri May 04 22:36:02 BST 2007com.sun.enterprise.web

WebContainerLifecycle

public class WebContainerLifecycle extends com.sun.appserv.server.ServerLifecycleImpl
This class implements the lifecycle methods used by the web container subsystem. This class is intended for use in versions of the application server that *do not* have web-core as well as in versions that do. NSAPI specific functionality is implemented the NSAPIWebContainerLifecycle subclass in the j2ee-plugin component.

Fields Summary
Constructors Summary
Methods Summary
public voidonInitialization(com.sun.enterprise.server.ServerContext sc)
Server is initializing subsystems and setting up the runtime environment. Prepare for the beginning of active use of the public methods of this subsystem. This method is called before any of the public methods of this subsystem are utilized.

param
sc ServerContext the server runtime context.
exception
IllegalStateException if this subsystem has already been started
exception
ServerLifecycleException if this subsystem detects a fatal error that prevents this subsystem from being used

    
        // Setup Catalina's environment
        InstanceEnvironment instance = sc.getInstanceEnvironment();
        System.setProperty("catalina.home", instance.getInstancesRoot());
        System.setProperty("catalina.base", instance.getInstancesRoot());
        System.setProperty("catalina.useNaming", "false");