ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/admin/jmx.htm

64 lines
4.8 KiB
HTML
Raw 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>Java Management Extensions</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="jmx"></a>Java Management Extensions</h3>
<p>This section describes how to use Java Management Extensions (JMX), which are a set of Java administrative APIs used to customize WebSphere Application Server - Express administration. WebSphere Application Server - Express supports access to the administrative functions through a set of Java classes and methods. You can write a Java program that performs any of the administrative features of the WebSphere Application Server - Express administrative tools. You can also extend basic WebSphere Application Server - Express administration to include your own managed resources.</p>
<p>You can connect to a running server or perform some tasks on configuration files directly with the JMX APIs. To use JMX APIs when the server is not running, specify AdminClient.CONNECTOR_TYPE_NONE. This mode modifies the configuration files directly. When you use this mode to change the configuration, you must ensure that the proper authorities are set up for any objects that you create. When you use other connector types to connect to a running application server or deployment manager, the proper authorities are configured automatically.</p>
<p>It is recommended that you follow these guidelines when using CONNECTOR_TYPE_NONE for any files that are created. Files created are usually located in the instance_name/config and instance_name/installedApps directories:</p>
<ul>
<li>Make the QEJBSVR profile the owner of any objects that are created, including objects in the <em>instance_name</em>/config and <em>instance_name</em>/installedApps directories.<p></p></li>
<li>The QEJBSVR profile must have *RWX authority on the directories and *RW authority on the files.<p></p></li>
<li>*PUBLIC should be *EXCLUDE on any files or directories. This can be set by running the JMX program with these Java properties:
<ul>
<li>os400.file.create.auth=none</li>
<li>os400.dir.create.auth=none</li>
</ul><p></p></li>
</ul>
<p>When you develop and run administrative clients that use various JMX connectors and that have security enabled, use the following guidelines. When you follow these guidelines, you guarantee the behavior among different implementations of JMX connectors. Any programming model that does not follow these guidelines is unsupported.</p>
<ul>
<li>Create and use a single administrative client before you create and use another administrative client.<p></p></li>
<li>Create and use an administrative client on the same thread.<p></p></li>
<li>Use one of the following ways to specify a user ID and password to create a new administrative client:
<ul>
<li>Specify a default user ID and password in the property file.</li>
<li>Specify a user ID and password other than the default. After you create an administrative client with a non-default user ID and password, specify the same non-default user ID and password when you create subsequent administrative clients.</li>
</ul></li>
</ul>
<p>These topics provide an overview of how you can use JMX with WebSphere Application Server - Express:</p>
<blockquote>
<p><strong><a href="jmxcrt.htm">Customize with JMX</a></strong>
<br>This topic describes how to manage your WebSphere Application Server - Express environment and deploy applications with Java administrative APIs.</p>
<p><strong><a href="jmxmbean.htm">Customize using JMX MBeans</a></strong>
<br>This topic describes how to extend WebSphere Application Server - Express administration with JMX MBeans.</p>
<p><strong><a href="jmxexj2ee.htm">Example: J2EE security permissions</a></strong>
<br>This example gives you the parameters necessary to grant J2EE security permissions in order to call JMX methods.</p>
</blockquote>
<p>For more information, see these resources:</p>
<ul>
<li><a href="apidocs/jmx/index.html">JMX Javadoc</a> <img src="api.gif" width="18" height="15" alt="Link to API documentation"></li>
<li><a href="http://java.sun.com/products/JavaManagement/index.html" target="_blank">Java Management Extensions (JMX)</a> <img src="www.gif" width="18" height="15" alt="Link outside of Information Center"></li>
<li><a href="http://www7b.boulder.ibm.com/wsdd/techjournal/0302_cundiff/cundiff.html" target="_blank">System Administration for WebSphere Application Server V5 -- Part 2: Writing Your Own Administration Programs</a> <img src="www.gif" width="18" height="15" alt="Link outside of Information Center"></li>
</ul>
</body>
</html>