Thursday August 24, 2006 ![]() |
JMX, SNMP, Java, etc...Daniel Fuchs blogs on JMX, SNMP, Java, etc... |
... You may not have noticed this, but the latest bits of sample
directory...
An Advanced JMX ExampleThe 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: java jmxPosted by dfuchs ( Aug 24 2006, 10:01:24 AM CEST ) Permalink Comments [1] |
Posted by pramod on April 10, 2007 at 08:00 AM CEST #