14.2 Using the container extension library

This section provides an overview of the container extension library and server start and stop hook functionality.

With Application Server, you can use a user-created library if a processing is to be commonly used between an EJB-JAR and WAR or between different EARs. By using the user-created library, you can extend the functionality of the servlets, JSPs, and Enterprise Beans.

The library that can be used in common by the servlets, JSPs, and Enterprise Beans is called the container extension library. By using this library, you can invoke the user-created library commonly from the Enterprise Beans, servlets, and JSPs.

Furthermore, by using the server start and stop hook functionality, you can invoke the container extension library when you start and stop the server. You can also initialize the JNI functionality that is used in the container extension library.

To use the container extension library, compile the libraries into a single JAR file and define the settings for using the container extension library in usrconf.cfg. When the container extension library uses the JNI, you must also specify the settings for using the server start/ stop hook functionality.

For details on the settings for the container extension library, see 14.3.3 Settings for using the container extension library functionality.