Using wsadmin scripting with Java Management Extensions (JMX)

Java™ Management Extensions (JMX) is a framework that provides a standard way of exposing Java resources, for example, application servers, to a system management infrastructure. Using the JMX framework, a provider can implement functions, such as listing the configuration settings, and editing the settings. This framework also includes a notification layer that management applications can use to monitor events such as the startup of an application server.

JMX key features

The key features of the WebSphere® Application Server Version 6 implementation of JMX include:

JMX architecture

The JMX architecture is structured into three layers: The layered architecture of JMX is summarized in the following figure:

Illustrates the architecture of JMX.

Figure 1: JMX architecture

JMX distributed administration

The following figure shows how the JMX architecture fits into the overall distributed administration topology of a WebSphere Application Server, Network Deployment environment:

Illustrates WebSphere Application Server distributed administration of JMX

Figure 2: WebSphere Application Server distributed administration of JMX

The key points of this distributed administration architecture include:

JMX Mbeans

WebSphere Application Server provides a number of MBeans, each of which has different functions and operations available. For example, an application server MBean can expose operations such as start and stop. An application MBean can expose operations such as install and uninstall. Some JMX usage scenarios that you can encounter include: The following example illustrates how to obtain the name of a particular MBean:
Using Jacl:
set am [$AdminControl queryNames type=ApplicationManager,process=server1,*]
Using Jython:
am = AdminControl.queryNames('type=ApplicationManager,process=server1,*')

Each WebSphere Application Server runtime MBean can have attributes, operations, and notifications. The complete documentation for each MBean that is supplied with WebSphere Application Server is available in an HTML table that is installed in each copy of the WebSphere Application Server product. Under the main installation directory for the product, there is the web directory. Under the web directory there is another directory called mbeanDocs. In the mbeanDocs directory there are several HTML files; one HTML file for each MBean supplied with WebSphere Application Server. There is also an index.html file that ties all the individual MBean files together in a top-level navigation tree. Each MBean provides a summary of its attributes, operations, and notifications.

JMX benefits

The use of JMX for management functions in WebSphere Application Server provides the following benefits:



Related concepts
Using wsadmin scripting with Jacl
Using wsadmin scripting with Jython
Related tasks
Using the wsadmin scripting objects
Getting started with wsadmin scripting
Starting the wsadmin scripting client using wsadmin scripting
Concept topic    

Terms of Use | Feedback

Last updated: Oct 21, 2010 1:44:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-express-dist&topic=cxml_javamanagementx
File name: cxml_javamanagementx.html