Friday, 7 December 2007

Startup and Shutdown Classes

WebLogic Server can be configured to invoke classes during boot and graceful shutdown process. Startup classes are loaded and executed after the server initializes all the subsystems and before it could open up the port for client access. Similarly shutdown classes are loaded before the server starts the graceful shutdown process. Unlike application files startup and shutdown classes have to be manually made available in the deployed server's local classpath.

Tips

1. Make the server-level startup classes available in the system classpath of the deployed WebLogic Server instance during startup.

2. The admin server to managed servers in a domain cannot deploy classes that are present in the system classpath automatically; application-level classes can be distributed by the admin server to targeted servers in a domain.

3. Application-level startup classes reload when the application is redeployed.

4. Server-level startup classes cannot be dynamically reloaded; they can be reloaded only during the respective WebLogic Server restart.

5. Use application-level startup classes, rather than defining server-level startup classes.

No comments: