I've integrated a Active MQ Server and listing its Queue using Spring JMS.
It is all configured in the xml, which basically invoke the listener bean method on getting a new message in the queue.
It is working fine.
Now I've another requirement to check the health status of the queue from a java class.
But I dont want to post any new message on the queue.
Is there any API available by which I can only check the connectivity of the queue? Or any api to do an informational query to the queue (like number of message in the queue)?
In JMS we can create the session using the connection pool by context lookup, that kind of thing also do for me. But I'm not able to do so in Spring as it abstracts the session creation in xml.
Any help on this?
Thanks,
Arpan


Reply With Quote
