12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JMX support in Partitions<br />

■<br />

■<br />

At Partition startup after all Partition services have loaded their respective modules.<br />

At Partition shutdown before Partition services have unloaded their respective<br />

modules but prior to the services themselves shutting down.<br />

■<br />

At Partition termination after Partition services have been shut down.<br />

Partition Interceptors have a variety of uses, including pre-loading JARs prior to<br />

startup, inserting debugging operations during module loading, or even simple<br />

messaging upon the completion of certain events.<br />

For information about how to implement a Partition Lifecycle Interceptor, see<br />

Chapter 25, “Implementing Partition Interceptors.”<br />

JMX support in Partitions<br />

The Java Management Extensions (JMX) defines an architecture, the design patterns,<br />

the APIs, and the services for application management in the Java programming<br />

language. JMX is used to get and set configuration and performance information, and<br />

send and receive alerts for Java programs. The JMX architecture is composed of<br />

Management Beans (MBeans), a JMX agent, and JMX adaptors.<br />

Each BES Partition hosts a fully functional JMX agent based on MX4J, an open source<br />

implementation of the Sun Microsystems, Inc. Java Management Extensions (JMX) 1.2<br />

specification. BES uses the MX4J HTTP adaptor without modification, but the MX4J<br />

RMI adaptor implementation has been modified to suit the BES Partition in the<br />

following ways:<br />

■<br />

■<br />

Uses the VisiBroker for Java ORB for RMI-IIOP remoting.<br />

RMI Connector is modified to use RMI-IIOP as the underlying transport.<br />

■<br />

The RMIConnectorServer is made available by both the Smart Agent component of<br />

BES and the JMX Service URL.<br />

The goal of the BES JMX implementation is to expose key runtime aspects of a BES<br />

Partition as MBeans. JSR-77 support is available in BES Partitions and has two<br />

fundamental aspects:<br />

1 Instrumentation of the J2EE Server (Partition) following the JSR-77 model.<br />

2 JSR-77 EJB interface to those JMX MBeans.<br />

Currently BES supports (1), but not (2). See “Partition MBeans” on page 23 for a list of<br />

Mbeans provided by <strong>Borland</strong> for the Partition.<br />

For more details about MX4J see http://mx4j.sourceforge.net, and for the JMX JSR-3<br />

specification see http://cp.org/aboutJava/communityprocess/final/jsr003/index3.html.<br />

Configuring the JMX Agent<br />

The JMX Agent is configured in the jmx section of the partition.xml file. The MBean<br />

Server is enabled by default and starts when the Partition is started. By default the<br />

RMI-IIOP adaptor is enabled and the HTML adaptor is disabled. See Chapter 30,<br />

“Partition XML reference” for more details about the jmx element.<br />

JMX agent configuration can also be accomplished using the <strong>Borland</strong> Management<br />

Console. See Chapter 2, “Using Partitions” for more information.<br />

22 BES Developer’s Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!