http://java.sun.com/developer/technicalArticles/J2SE/jmx.html
I had an application that reads some non-standard debug settings from a properties file at startup -- when one wanted to change the settings the application server needed to be restarted. In a production environment, restarting the application server is not an option. I implemented JMX on the logging class so that JConsole can be used to modify the settings.
The class in question is a singleton so I created a helper class since the MBean interface methods cannot be static. The singleton instantiates the agent with its static load() method.
No comments:
Post a Comment