Home:ALL Converter>How do I log or monitor JMS messages placed on a queue?

How do I log or monitor JMS messages placed on a queue?

Ask Time:2019-08-12T22:47:06         Author:ValeryC

Json Formatter

We are on JBoss EAP 6.4.

There is a JMS queue that has a consumer who immediately consumes everything that is placed to the queue.

I want to check what is placed to the queue but for my tool (Hermes JMS) the queue is always empty.

I tried configuring fine level logging for "org.hornetq" category but messages placed to the queue are not logged at any debug level.

Is there a way to see what is placed to the queue when it is immediately consumed?

Thanks,

Valery

Author:ValeryC,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57463422/how-do-i-log-or-monitor-jms-messages-placed-on-a-queue
yy