[jboss-user] [EJB 3.0] - Use of timer service in JMS context
tpawankumar
do-not-reply at jboss.com
Tue Apr 1 06:06:53 EDT 2008
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140381#4140381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140381
More information about the jboss-user
mailing list