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 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:

Figure 1. JMX architecture
Illustrates the architecture of JMX.

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:

Figure 2. Distributed administration of JMX
Illustrates WebSphere Application Server distributed administration of JMX

The key points of this distributed administration architecture include:

JMX Mbeans

The product 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 the product is available in this information center at information_center > Reference > Programming interfaces > Mbean interfaces.

JMX benefits

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

Concept topic    

Terms and conditions for information centers | Feedback

Last updated: April 20, 2014 08:46 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=cxml_javamanagementx
File name: cxml_javamanagementx.html