Network Deployment (Distributed operating systems), v8.0 > Set up the application serving environment > Administer application servers > Manage shared libraries


Associate shared libraries with applications or modules


Overview

When you associate shared libraries with applications, classes represented by the shared library are loaded in the application's class loader, making the classes available to the application.

If you associate a shared library with an application, do not associate the same shared library with a server class loader.


Associate shared library with an application

  1. Map the application to a target server within the scope of the shared library.

    If the shared library scope is the my_cluster cluster, map the application to the target my_cluster cluster.

  2. On the Shared library mapping page, select one or more shared libraries that the application or modules use in the Available list, click >> to add them to the Selected list, and click OK.

  3. On the Shared library references page, click OK.

  4. Save the changes to the configuration.

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.


Troubleshooting

To verify an association between an application and a shared library, examine the application class loader in the Class loader viewer.

The classpath of the application module class loader lists the classes used by the shared library.


Related

Shared library reference and mapping settings
Class loaders
Installed optional packages
Map modules to servers
Create shared libraries
Associate shared libraries with servers
Manage shared libraries
Use installed optional packages
Shared library relationship and mapping settings
Shared library collection
Library reference collection

+

Search Tips   |   Advanced Search