Hi,
do you have idea, if there would be some nice way to browse/log JMS queues? (I'm using OpenJMS)
For topics I can just add one consumer more and that's about it but with queues I haven't finished with a solution yet. I would like to log all the messages in certain queues and topics without "popping" them from the queue (so that the logger counld browse queues "invisible").
With javax.jms.QueueBrowser i can get a snapshot of the queues but that doesn't seem to provide "listener solution" - reading all the messages on the queues on infinite loop again and again and hoping that no messages happen to be both written and consumed before my snapshots - that didn't sound like a good solution.
Another option would be to create two queues for each "logical queue" - one for logger and one for the actual use - logger would then forward the messages to the "actual queue" - that could maybe work but there could be better solution?
So if somebody has a solution to get all messages in a queue by an "invisible" logger or some nice other solution for the logging, that'd be cool.