This discussion is archived
3 Replies Latest reply: Dec 23, 2011 2:27 AM by gimbal2 RSS

Can i have listener for the queue

906980 Newbie
Currently Being Moderated
Is it possible to add a listener for the JMS queue so that i can intercept the messages before it is consumed by the consumer?

If yes, please provide more details as to how to do it. If no, can anyone give the alternative way to intercept the incoming messages to the queue?

Thanks,
Ravish
  • 1. Re: Can i have listener for the queue
    r035198x Pro
    Currently Being Moderated
    What do you want to do with the intercepted message?
    What is the business requirement that we are trying to solve here?
  • 2. Re: Can i have listener for the queue
    906980 Newbie
    Currently Being Moderated
    I want to monitor the queue and report the problems if any. I mean before consumer consumes the message, I want to analyze the message parameters like timestamp, message size, userID etc so that we know the cause for the problem.
  • 3. Re: Can i have listener for the queue
    gimbal2 Guru
    Currently Being Moderated
    903977 wrote:
    I want to monitor the queue and report the problems if any. I mean before consumer consumes the message, I want to analyze the message parameters like timestamp, message size, userID etc so that we know the cause for the problem.
    That is more a feature your message broker can provide, not something that should be part of the JMS specification itself. I would check the manual of whatever JMS service you are using for possibilities of monitoring, interception and logging.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points