Hi Geeks

How fast the time runs when you are busy!!!

I promised to bring an example how to use the TIMER
agent service to be notified once or periodically
at a given time (and period).

These are the steps:
- add a <MLET> to the jboss.conf telling to load
  "javax.management.timer.Timer" in jmxri.jar.
- get the MBeanServer either through JNDI if you are
  in the same JVM or through JMX Connector when outside
- get the Timer MBean through MBeanServer/JMX Connector
- add a notification with addNotification()
- add yourself as listener to the Timer MBean

I should come up with a code example by the end of the
week.

Have fun - Mad Andy / Better Pizza

Reply via email to