Shared library allows you to specify a container-wide list of library
entries that is used when deploying an application.
Prerequisite
- Create an enterprise application and target the server to WebSphere® Application
Server v6.0.
To add share library, follow these steps:
- Switch to the J2EE perspective.
- In the Project Explorer view, expand the Enterprise
Applications folder.
- Under the enterprise application project folder for which you want
to add a shared library, double-click the Deployment Descriptor to
open the Application Deployment Descriptor editor.
- Select the Deployment tab at the bottom
of the editor.
- Expand the shared library section.
- Click the Add button beside the library
list table. The Add Library Entry dialog box opens.
- In the add a library entry dialog box, specify the name and
either the class path or native path fields:
- In the name field, specify the name for
your library entry.
- In the description field, you have the
option to provide a brief description of the resource provider.
- In the class path list box, browse or
add the class path to the JAR files.
- In the native path list box, browse or
add a path which forms the location for the resource provider native libraries. Native path entries are separated by using the ENTER key and must not
contain path separator characters (such as ';' or ':'). Native paths can contain
variable (symbolic) names which you can substitute using a variable map.
- Save your changes and close the editor. The shared library
entry has been added to the deployment descriptor files.