Shared libraries are files used by multiple applications. Create a shared library to reduce the number of duplicate library files on your system.
Determine the full path name or directory of each library file for which you want a shared library.
To make a library file available to multiple applications deployed on a server, create one or more shared libraries for library files that your applications need. When you create the shared libraries, you can use variables within the library file class paths.
You can create one shared library that points to multiple files or directories. This enables you to maintain a single shared library for files that your applications need.
Or you can create a shared library for each library file that your applications need. This approach is recommended only when you have few library files and few applications that use the files. After you create a shared library, you associate it with each application that uses the library files. If you have multiple shared libraries and multiple applications that use the library files, you must complete many steps to create and associate those shared libraries. It is simpler to use one shared library for related files.
Use the Shared libraries page to create and configure shared libraries.
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.
If you enabled the Use an isolated class loader for this shared library setting when creating your shared library, associate the shared library with applications or web modules. If you associate the shared library with a server, the product ignores this setting and still adds files in the shared library to the application server class loader. The product does not use an isolated shared library when you associate the shared library with a server.
Alternatively, you can use an installed optional package to associate your shared libraries with an application.
In this information ...Related concepts
Related tasks
Related reference
| IBM Redbooks, demos, education, and more(Index) |