You can associate a shared library with an application or module. Classes represented by the shared library are then loaded in the application's class loader, making the classes available to the application.
This topic assumes that you have created a shared library. The shared library represents a library file used by multiple deployed applications.
You can define a shared library at the cell, node, server, or cluster level.
This topic also assumes that you want to use the administrative console, and not an installed optional package, to associate a shared library with an application.
To associate a shared library with an application or module, create and configure a library reference using the administrative console. A library reference specifies the name of the shared library file.
If you associate a shared library with an application, do not associate the same shared library with a server class loader.
When you run the application, classes represented by the shared library are loaded in the application class loader.
The classes are now available to the application or module.
To verify an association between an application and a shared library, examine the application class loader in the Class loader viewer. Click
. The classpath of the application module class loader lists the classes used by the shared library.