0
votes

I have many applications (about 60) whom consumes messages on hornetQ queues.

Normally, each application consumes its own queue but I have some messages on a specific queue whom are consume by an unkown application.

For exemple, normally the application A consume the queueA but for a weird reason, some messages are not consume by this application (I log every entry in Jms listener) and I don't know who consumes those messages.

Is it possible to check on hornetQ what application consumes a message ?

1

1 Answers

0
votes

You can use Interceptors to monitor at the server side which clients connect to the topic in question. Basically, you just write a class implementing the Interceptor interface. In the intercept method, you check for the packet type and log the client id. HornetQ provides a simple example.