jboss implements a timerservice : org.jboss.monitor.services.TimerService
we can define this mbean in jboss-service.xml and set its properties such as NotificationType, NotificationMessage, TimerPeriod. This mbean will be loaded from the xml file and start sending heartbeat msg.
I want to know how to do this using annotation.