Shared libraries are files used by multiple applications. Create
a shared library to reduce the number of duplicate library files on your system.
About this task
The first step for making a library file available to multiple applications
deployed on a server is to create a shared library for each library file that
your applications need. When you create the shared libraries, set variables
for the library files.
Use the Shared Libraries page to create and configure
shared libraries.
Procedure
- Go to the Shared
Libraries page.
Click Environment > Shared Libraries in
the console navigation tree.
- Select a shared library scope.
Change the scope of
the collection table to see what shared libraries are in a particular cell,
node or server.
- Select a cell, node, or server.
For example, to
make the shared library available to applications and servers on a cell, select
a cell.
- Click Apply.
After creating a shared library, you can see whether a shared
library can be used on a specific node. Select a scope to see what shared
libraries are available to applications installed on or mapped to that scope.
- Click New.
- Configure the shared library.
- On the settings
page for a shared library, specify the name, class path, and any other
variables for the library file that are needed.
If the shared
library specifies a native library path, refer to Configuring native libraries in shared libraries.
- Click Apply.
- Repeat steps 1 through 4 until you define a shared library instance
for each library file that your applications need.
What to do next
Using the administrative console, associate your shared libraries with specific applications or modules or with the class loader of an application server. Associating a shared library file with a server class loader associates the file with all applications on the server.Alternatively,
you can use an installed
optional package to associate your shared libraries with an application.