An Advanced JMX Example for JDK 6

... You may not have noticed this, but the latest bits of Your Favorite Galloping Animal JDK 6 now include an advanced JMX example in their sample directory...

An Advanced JMX Example

The new example builds up on the JMX Best Practices and discusses some usual JMX patterns and pitfalls to avoid when designing a Management Interface with JMX.

The example is intended for readers who already have a good understanding of basic JMX concepts. I would therefore recommend that newcomers to the JMXTM Technology first have a look at the JMX API Overview, Tutorial and Examples documentation.

Just to wet your appetite, let me say that the new example broach on subjects like Singleton MBeans, MXBeans, implementing MBeans which use XML to store and load application configuration, handling application MBeans life cycle, uses of the MBeanRegistration interface, inter MBean references, etc...

The example also shows how to start a JVM in a secure JMX configuration, as you would need to do if you wanted to deploy a secure JMX agent. It also shows how to write a secure JMX programmatic client, and how to access the secure agent with jconsole

How To Get the Example?

Simply install the latest (build 96 or later) JDK 6. The example is in JDK_HOME/sample/jmx/jmx-scandir. Load JDK_HOME/sample/jmx/jmx-scandir/index.html in your browser, and learn all about it!

Make sure that JDK 6 is in your path, and if you use NetBeans, don't forget to start it with its magic --jdkhome option in order to make JDK 6 its default platform. And if you're going to run it on Windows, you may be interested in learning about some hidden commands.

I hope you will enjoy the tour, and will find this example useful when the time comes to design your own JMX Management Interface!

cheers,
-- daniel
Note: this example was created in a collaborative effort of the whole JMX team who have provided inputs, ideas, reviews, and QA!

Oh! and by the way, don't use the example in a nuclear facility. After all, I wrote the stuff ;-)

Comments:

JMX examples

Posted by pramod on April 10, 2007 at 01:00 AM CEST #

Is it possible to cutomize the HTML adaptor.
The problem here is we are registering the Mbean server and it is throwing all the Mbeans on a single page, is it possible to segregate these and only certain information be displayed on the Adaptor page.....
Vilas

Posted by Vilas Tadoori on July 16, 2010 at 02:24 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Daniel Fuchs blogs on Scene Builder, JMX, SNMP, Java, etc...

The views expressed on this blog are those of the author and do not necessarily reflect the views of Oracle.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today