This content has been marked as final.
Show 3 replies
-
1. Re: Does DLQ record exceptions
fs5 Apr 30, 2009 5:05 AM (in response to 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 Apr 30, 2009 5:35 AM (in response to fs5)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 Apr 30, 2009 5:59 AM (in response to 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