您可以使用MBean在该队列中获取挂起的消息
"org.apache.activemq:BrokerName=host1,Type=Queue,Destination=dest1"
attribute: "QueueSize"
每隔几秒钟检查一次并且该值不超过零后,就可以开始记录统计信息了。

您可以使用MBean在该队列中获取挂起的消息
"org.apache.activemq:BrokerName=host1,Type=Queue,Destination=dest1"
attribute: "QueueSize"
每隔几秒钟检查一次并且该值不超过零后,就可以开始记录统计信息了。