Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug ActiveMQ client?

I'm a fairly new user of ActiveMQ and I'm looking for a way to get detailed debug information on the client side of a queue connection. My problem is this: I have a server that is sending a message through a queue to a client. Using the admin web page associated with the broker, I can verify the following: the queue was created, there is a consumer associated with the queue, the message has been enqueued, the message has been dispatched, the dispatched queue size is 1, the message has not been dequeued. This setup was working yesterday but mysteriously stopped working today even though I did a restart of the activemq service. The log file at /var/log/activemq.log does not contain any useful information.

At this point I'm stumped; I'm assuming that there is some sort of problem with the configuration, but it hasn't changed since yesterday. Does anybody have a suggestion about what my next step should be?

like image 979
BD at Rivenhill Avatar asked Oct 25 '25 20:10

BD at Rivenhill


1 Answers

Turn on debug (or even trace) logging in the broker first of all in conf/log4j.properties.

log4j.logger.org.apache.activemq=DEBUG

restart the broker and re-run your scenario. The logging will hopefully provide you with some information. Jconsole is also a useful tool to monitor the running broker.

Does your client use any message filters?

like image 59
Torsten Mielke Avatar answered Oct 27 '25 19:10

Torsten Mielke