ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/appsvrshlib.htm

126 lines
7.0 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Administer shared libraries</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="aceshlib"></a>Administer shared libraries</h4>
<p>WebSphere Application Server - Express uses shared libraries to define code that is used by your enterprise applications, but not packaged within those applications. For example, a utility library, such as IBM Toolbox for Java classes, could be packaged as a shared library. Shared libraries can be associated with an enterprise application or an application server. If you assoicate a shared library with an application server, it is accessible to all of the enterprise applications deployed on that server.</p>
<p>Shared library files in WebSphere Application Server consist of a symbolic name, a classpath, and a path for loading JNI libraries.</p>
<p>You can define a shared library at the cell, node, or server level. Defining a library at one of the three levels does not cause the library to be placed into the application server's classloader. To make the classes in the library available to an application or server, you must create an association between the library and the application or server.</p>
<p>A separate classloader is used for shared libraries that are associated with an application server. This classloader is the parent of the application classloader, and the WebSphere Application Server extensions classloader is its parent. Shared libraries that are associated with an application are loaded by the application classloader. For more information about classloaders, see <a href="../program/clshier.htm">Classloader hierarchy</a>.</p>
<p>For information on administering shared libraries, see these sections:</p>
<ul>
<li><a href="#create">Create shared libraries</a></li>
<li><a href="#modify">Modify shared libraries</a></li>
<li><a href="#remove">Remove shared libraries</a></li>
<li><a href="#server">Associate a shared library with an application server</a></li>
<li><a href="#app">Associate a shared library with an application</a></li>
</ul>
<p><strong><a name="create"></a>Create shared libraries</strong></p>
<p>To create a shared library, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>In the topology tree, expand <strong>Environment</strong> and click <strong>Shared Libraries</strong>.</li>
<li>On the <strong>Shared Libraries</strong> page, specify the scope for which you want to define a library and click <strong>Apply</strong>.</li>
<li>Click <strong>New</strong>.</li>
<li>Specify a name and classpath for the shared library. You can also specify other properties on this page.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="modify"></a>Modify shared libraries</strong></p>
<p>To modify a shared library, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>In the topology tree, expand <strong>Environment</strong> and click <strong>Shared Libraries</strong>.</li>
<li>On the <strong>Shared Libraries</strong> page, specify the scope contains the library that you want to modify and click <strong>Apply</strong>.</li>
<li>Click the name of the shared library that you want to modify.</li>
<li>Make your changes.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="remove"></a>Remove shared libraries</strong></p>
<p>To remove a shared library, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>In the topology tree, expand <strong>Environment</strong> and click <strong>Shared Libraries</strong>.</li>
<li>On the <strong>Shared Libraries</strong> page, specify the scope for that contains the library that you want to remove and click <strong>Apply</strong>.</li>
<li>Select the checkbox for the shared library that you want to remove.</li>
<li>Click <strong>Delete</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="server"></a>Associate a shared library with an application server</strong></p>
<p>To associate a shared library with an application server, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>In the topology tree, expand <strong>Servers</strong> and click <strong>Application Servers</strong>.</li>
<li>On the <strong>Application Servers</strong> page, click the name of the server to which you want to add a shared library.</li>
<li>On the application server's detail page, click <strong>Classloader</strong>.</li>
<li>On the <strong>Classloader</strong> page, click <strong>New</strong>.</li>
<li>Select the <strong>Classloader</strong> mode and click <strong>OK</strong>.</li>
<li>On the <strong>Classloader</strong> page, click the classloader that you created. If this is the first classloader that you create for your application server, it is named classloader_1.</li>
<li>On the classloader's detail page, click <strong>Libraries</strong>.</li>
<li>On the <strong>Libraries</strong> page, click <strong>Add</strong>.</li>
<li>Select the shared library that you want to associate with your application server.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p>To remove an association to a shared library, follow these steps:</p>
<ol>
<li>On the <strong>Libraries</strong> page, select the checkbox for the library that you want to remove.</li>
<li>Click <strong>Remove</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="app"></a>Associate a shared library with an application</strong></p>
<p>To associate a shared library with an application, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>In the topology tree, expand <strong>Applications</strong> and click <strong>Enterprise Applications</strong>.</li>
<li>On the <strong>Enterprise Applications</strong> page, click the name of the application to which you want to add a shared library.</li>
<li>On the application's detail page, click <strong>Libraries</strong>.</li>
<li>On the <strong>Libraries</strong> page, click <strong>Add</strong>.</li>
<li>Select the shared library that you want to associate with your application.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p>To remove an association to a shared library, follow these steps:</p>
<ol>
<li>On the <strong>Libraries</strong> page, select the checkbox for the library that you want to remove.</li>
<li>Click <strong>Remove</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
</body>
</html>