activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billy <Billy.Buzz...@bnsflogistics.com>
Subject Re: Howto read JMSTimestamp using JMX
Date Mon, 13 Jun 2011 21:26:33 GMT
I figured it out.  I was making it to complicated.  I was able to get all
JMSTimestamps from a given queue using the following groovy code:

queue = new
GroovyMBean(server,"org.apache.activemq:BrokerName=$host,Type=Queue,Destination=$queueName")
queue.browseAsTable().entrySet().each {
    CompositeData compositeData = it.value;
    println "key= ${it.key}  Timestamp=${compositeData['JMSTimestamp']}"
}


--
View this message in context: http://activemq.2283324.n4.nabble.com/Howto-read-JMSTimestamp-using-JMX-tp3594795p3594975.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message