Java Management Extensions
This section describes how to use Java Management Extensions (JMX), which are a set of Java administrative APIs used to customize WebSphere Application Server administration. WebSphere Application Server 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 administrative tools. You can also extend basic WebSphere Application Server administration to include your own managed resources.
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, 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.
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:
- Make the QEJBSVR profile the owner of any objects that are created, including objects in the instance_name/config and instance_name/installedApps directories.
- The QEJBSVR profile must have *RWX authority on the directories and *RW authority on the files.
- *PUBLIC should be *EXCLUDE on any files or directories. This can be set by running the JMX program with these Java properties:
- os400.file.create.auth=none
- os400.dir.create.auth=none
These topics provide an overview of how you can use JMX with WebSphere Application Server:
Customize using JMX
This topic describes how to deploy and manage your WebSphere Application Server environment through the use of Java administrative APIs.Customize using JMX MBeans
This topic describes how to extend WebSphere Application Server administration using JMX MBeans.JMX examples
This topic gives examples of an administrative client program and of J2EE security permissions.For more information, see these resources:
- JMX Javadoc
- Java Management Extensions (JMX)
- Migrate to WebSphere V5.0 An End-to-End Migration Guide
- System Administration for WebSphere Application Server V5 -- Part 2: Writing Your Own Administration Programs