3 Replies Latest reply on Apr 30, 2009 5:59 AM by fs5

    Does DLQ record exceptions

    fs5

      Hi,

      when a message is sent to the dead letter queue, because delivery failed too many times, is the exception somewhere recorded that caused the failure?

      Kind regards,
      Frank

        • 1. Re: Does DLQ record exceptions
          fs5

          Any ideas?

          Is there any built-in facility/pattern to record a poisoned message along with the exception it has caused and the destination it was last delivered to?

          Sorry for bumping up the post.
          Frank

          • 2. Re: Does DLQ record exceptions
            gaohoward

            You can set the log level to TRACE and then you will see the log record when it happens. Don't know if this is what you wanted.

            • 3. Re: Does DLQ record exceptions
              fs5

               

              "gaohoward" wrote:
              You can set the log level to TRACE and then you will see the log record when it happens. Don't know if this is what you wanted.


              Not quite. The exception in the log file I want to be recorded with the message. The default behavior is to put the poisoned message into the DLQ. This give me no clue of why this message is in there and where did it come from.

              I know I could construct all consumers with a big try/catch exception block - but I am still reluctant to do so. (This would also impose disadvantages as for example the missing retry-behavior)

              -- Frank