WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

Associating shared libraries with applications

You can associate a shared library with an application. Classes represented by the shared library are then loaded in the application's class loader, making the classes available to the application.

Before you begin

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.

About this task

To associate a shared library with an application, 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

  1. Click Applications > Enterprise Applications > application_name > Libraries in the console navigation tree to access the Library Ref page.
  2. On the Library Ref page, click Add.
  3. 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.
  4. Click Apply. The name of the library reference is shown in the list on the Library Ref page.
  5. Repeat steps 2 through 4 until you define a library reference instance for each shared library that your application requires.
  6. 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.




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
Task topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tcws_sharedlib_app.html

© Copyright IBM Corporation 2004, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)