| JMX HelloWorld example.
Instead of saying "Hello", this simple class shows how is possible to create services,
register them in the JMX Agent, and invoke methods on them without
having a reference to them.
One can create a service that can reload its configuration at runtime, and be queried
on how many times the configuration is reloaded, and expose it as standard MBean.
This class shows in code what is possible to do via a management interface: once the
service is registered, one can connect via (for example) the HTTP adaptor and
invoke methods on the MBean.
The service (the MBean) can be registered in one host, while the system administrator
can connect to the HTTP adaptor from another host using a browser and ask the service
to reload its configuration, without stopping it nor being forced to login to the
remote host.
version: $Revision: 1.1 $ |