How do you find out which consumers are taking messages in a queue

Hi, JMS newbie here... I have a simple JMS program. Messages are sent to a queue, and they are stored in the filestore directory. But I my queueReceivers are not receiving the messages and the admin tool says there are no messages in the queue.

I want to find out where the message is ending up. It is clearly getting to the queue, but i have no idea who's taking it. Is there some sort of logging of message transfer in Message Queue?

[464 byte] By [705417] at [2007-11-25 8:42:27]
# 1

To find the messages in the queue , use imqcmd command.

To list the queues(destination name) use

imqcmd list dst

Use admin as user name & password. It will list all the queues names .

use imqcmd query dst -n name_of_destination -t q

to list number of messages in the queue.

Amol desai at 2007-7-1 15:21:50 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 2

Thank you for your reply. What i wanted was little different.I wanted to know which brokers were taking the messages. I had multiple brokers listening to a queue, and i wanted to know which broker was getting which message. Is this possible through configuring the MQ? or is it something I have to implement?

705417 at 2007-7-1 15:21:50 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...