twitter
    !! Tell us what you want to Learn / Know !!

Life Cycle Modules

Life cycle modules, also known as initialization services, provide a means of running short or long duration Java-based tasks within the GlassFish Server environment. These modules are automatically initiated at server startup and are notified at various phases of the server life cycle. Configured properties for a life cycle module are passed as properties during server initialization.

All life cycle module classes and interfaces are in the as-install/glassfish/modules/glassfish-api.jar file.

A life cycle module listens for and performs its tasks in response to the following GlassFish Server sequence of events:

Initialization:
         The server reads the configuration, initializes built-in subsystems (such as security and logging services), and creates the containers.


Startup:
        The server loads and initializes deployed applications.

Ready:
       The server begins servicing requests.

Shutdown:
       The server shuts down the applications and stops.

Termination:
       The server closes the containers, the built-in subsystems, and the server runtime environment.


0 comments:

Post a Comment