InfoCenter Home > 6.6.3.5: Invoking your own classes during application server startup and shutdownThe ServiceInitializer enables you to specify user defined classes that are invoked as the last action (or actions) during application server startup and shutdown. Creating classes for use with ServiceInitializerServiceInitializer classes must have a no-argument constructor (for newInstance()) and must implement the following interface: import javax.naming.Context; public interface ServiceInitializer { public void initialize(Context initialNamingContext) throws Exception; public void terminate(Context initialNamingContext) throws Exception; } Adding ServiceInitializer classes to an application serverSpecify your classes as part of the ServiceInitializer command line argument for an application server, such as: -Dcom.ibm.ejs.sm.server.ServiceInitializer=<class>[,<class>]...where each <class> is one of your own classes. ServiceInitializer classes are initialized in the order listed in the property, and are terminated in reverse order. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|