Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Accessing EJB Components in a Remote Application Server
- Next: Configuring Resources

## Naming Environment for Lifecycle Modules

Lifecycle listener modules provide a means of running short or long duration Java-based tasks within the application server environment, such as instantiation of singletons or RMI servers. These modules are automatically initiated at server startup and are notified at various phases of the server life cycle. For details about lifecycle modules, see Chapter 10, Developing Lifecycle Listeners.

The configured properties for a lifecycle module are passed as properties during server initialization (the `INIT_EVENT`). The initial JNDI naming context is not available until server initialization is complete. A lifecycle module can get the `InitialContext` for lookups using the method `LifecycleEventContext.``getInitialContext()` during, and only during, the `STARTUP_EVENT`, `READY_EVENT`, or `SHUTDOWN_EVENT` server life cycle events.

- Previous: Accessing EJB Components in a Remote Application Server
- Next: Configuring Resources

- © 2010, Oracle Corporation and/or its affiliates