2 Replies Latest reply on Nov 27, 2012 4:22 AM by dode

    Event when message is put on DLQ

    dode

      Is there a way in JBoss 5.1 to get an event through some listener or interceptor when a message is put in the DLQ?

      I searched quite a bit but couldn't find anything related.

      We basically just want to record some statistics.

       

      Torsten

        • 1. Re: Event when message is put on DLQ
          everjava

          have you tried a message drive bean ?

           

          @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

                  @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DLQ") }, mappedName = "DLQ")

          public class Myclass  implements MessageListener {

           

          }

          • 2. Re: Event when message is put on DLQ
            dode

            Unless there is something specific about the DLQ, I suppose that would consume messages from it, which is not what I want.

             

            I'd just like to be notified when a message goes in the DLQ.

             

            Torsten