jmx

JMX example - A multithreaded Java JMX application

Here is some sample Java source code for a multithreaded JMX test that I created recently. After creating two other JMX example projects -- a simple JMX Hello World tutorial project and then a JMX standalone (Swing) project -- I decided to create this multi-threaded JMX test application to see how JMX would work with an application that had multiple threads running simultaneously.

JMX example - A Java JMX Swing application

Here is some sample Java source code for some JMX tests that I created a while ago. I started my first tests with an introductory JMX tutorial, then created this JMX example to see how JMX might work with a standalone application, in this case, a Java Swing GUI application. Let's look at the code.

First, here's the source code for a Java interface (an MBean interface) named HelloMBean:

Java JMX tutorial - A "Hello world" JMX application

Java JMX FAQ: Can you share a simple Java JMX example?

Here is some sample Java source code for some JMX tests that I created recently. I got a large percentage of this code from Sun's JMX MBean tutorial when I first started working with JMX, and I think it's some decent "Hello World" starter code. The main thing I've done here is (a) clarify what they've written and (b) added a shell script to start the JMX application. (I'm also about to publish some other JMX source code that I know I wrote myself.)

Syndicate content