About Me

JMX, SNMP, Java, etc...

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

All | Personal | Sun
tags: blogging firewall hg java jconsole jmx jvm management mbean mercurial monitoring opendmk openjdk opensource rmi snmp ssl

Table Of Contents (list all entries)

« The Hidden Command... | Main | Blogs, Java, Roller,... »
20060824 Thursday August 24, 2006
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 ;-)

Tags:
Posted by dfuchs ( Aug 24 2006, 10:01:24 AM CEST ) Permalink Comments [1]

Trackback URL: http://blogs.sun.com/jmxetc/entry/an_advanced_jmx_example_for
Comments:

JMX examples

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

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed
[Table Of Contents]

This is a personal Weblog, and I do not speak for my employer.

Calendar

RSS Feeds

DFuchs on DZone

Search

Links

Lookup RFC

Planet JMX

From Grenoble

Navigation

Referers