0 Replies Latest reply on Apr 1, 2008 6:06 AM by kumar reddy

    Use of timer service in JMS context

    kumar reddy Newbie

      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>
      


      can we send the message to JMS Server using Timer Service.If yes,
      Please let me know how to do it.

      Following is the creation of topic in Jboss 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>


      Please help me.

      Thanks,
      Pavan.