Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Scripting concepts


Use wsadmin scripting with JMX

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


JMX distributed administration

The following figure shows how the JMX architecture fits into the overall distributed administration topology of a WAS ND environment:

Figure 2. 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:

### Jacl

set am [$AdminControl queryNames type=ApplicationManager,process=server1,*]

### Jython

am = AdminControl.queryNames('type=ApplicationManager,process=server1,*')

Each WAS 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 WAS provides the following benefits:


Use wsadmin scripting with Jacl
Use wsadmin scripting with Jython
Use the wsadmin scripting objects
Get started with wsadmin scripting
Start the wsadmin scripting client using wsadmin.sh

+

Search Tips   |   Advanced Search