Hi All,
I am using Timer Service in jboss 4.2.1 GA for sending notification messages every 60 secs.I want to notify this message to JMS server.
I have used the jboss-service.xml with following code
<server> <mbean code="org.jboss.monitor.services.TimerService" name="jboss.monitor:name=Heartbeat,type=TimerService"> <attribute name="NotificationType">jboss.monitor.heartbeat</attribute> <attribute name="NotificationMessage">JBoss is alive!</attribute> <attribute name="TimerPeriod">60sec</attribute> <depends optional-attribute-name="TimerMBean"> <!--<mbean code="javax.management.timer.Timer" name="jboss.monitor:name=Heartbeat,type=Timer"/>--> <mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=PropertiesTopic"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean> </depends> </mbean> </server>
<mbean code="org.jboss.mq.server.jmx.Topic" name="jboss.mq.destination:service=Topic,name=PropertiesTopic"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean>