Associating shared libraries with servers
We can associate shared libraries with the class loader of a server. Classes represented by the shared library are then loaded in a server-wide class loader, making the classes available to all applications deployed on the server.
Before you begin
This article assumes that you have defined a shared library at the cell, node, or server level. The shared library represents a library file used by multiple deployed applications.
Overview
To associate a shared library with the class loader of a server, 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 a server class loader, do not associate the same shared library with an application.
Procedure
- Configure class loaders for applications deployed on the server.
- Click Servers > Application Servers > servername to access the settings page for the application server.
- Set values for the application Class loader policy and Class loading mode of the server. For information on these settings, see Application server settings and Class loaders.
- Create a library reference for each shared library file that your application needs.
- Go to the settings page for a class loader.
- Click Libraries to access the Library Ref page.
- Click Add.
- On the settings page for a library reference, specify variables for the library reference as needed. The variables identify the shared library file that your application uses.
- Click Apply. The name of the library reference is shown in the list on the Library Ref page.
Repeat the previous steps until you define a library reference for each shared library that your application needs.
See Also
Class loaders
Shared library files
Related Tasks
Creating shared libraries
Associating shared libraries with applications
See Also
Shared library collection
Library reference collection