[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3. Example Code

Here is some example code to help you get going with SimpleJMX. I often find that code is the best documentation of how to get something working. Please feel free to suggest additional example packages for inclusion here. Source code submissions are welcome as long as you don’t get piqued if we don’t chose your’s.

Simple, basic

This is a simple application which publishes a single object. See the source code on github.

Random object example

This is an example showing how to programmatically expose using JMX a random object without SimpleJMX annotations: See the source code on github.

Spring Framework example

This is an example showing how you can use SimpleJMX with the Spring Framework. See the source code on github. The example spring config file is also available.

Jmx Web Server example

This is an example showing how you can use SimpleJMX to expose JMX beans over HTTP to web browsers. See the source code on github.

Publish all example

This is an example that shows how you can use the PublishAllBeanWrapper to publish information about a random object. See the source code on github.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Gray Watson on March 27, 2017 using texi2html 1.82.