Operating Systems: i5/OS
Personalize the table of contents and search results
Associating shared libraries with applications or modules
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 defined 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, or server 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.
Overview
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.
Procedure
- Click Applications > Enterprise Applications
> application_name > Shared library references in the console
navigation tree to access the Shared
library references page.
- On the Shared library references page, select
an application or module to which you want to associate a shared library.
- Click Reference shared libraries.
- 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.
- Repeat steps 2 through 4 until you define a library
reference instance for each shared library that your application or module
requires.
- On the Shared library references page, click OK.
- Save the changes to the configuration.
Results
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 Troubleshooting
> Class Loader Viewer > module_name > Table View. The classpath
of the application module class loader lists the classes used by the shared
library.
}
Shared library reference and mapping settings
Related concepts
Class loaders
Installed optional packages
Related tasks
Creating shared libraries
Associating shared libraries with servers Managing shared libraries
Using installed optional packages
Related Reference
Shared library collection
Library reference collection
|