activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Demian Mrakovich <>
Subject Question: Object properties on DLQ (adding exception to message for DLQ)
Date Mon, 08 Sep 2008 10:27:32 GMT

On ActiveMQ 4.1.1

I'm trying to add an exception to a failed message so that I can get the
exception that caused it when it is received on my DLQ listener. 

I cannot add a string property since the message is read-only when it is
received by the client. So I tried having the _producer_ create a List
instance on the message with setObjectProperty so that the client can fill
it with an exception or a string message. 

The problem is, while I _can_ get the previous exception message in
onMessage when it is retried, this List object is null when the message is
received by my DLQ listener. 

So my question is: are the message properties copied into a new message for
sending to DLQ and is ActiveMQ "forgetting" to copy the object properties on
it? It doesn't seem to be the same object since the List is now null. 

And, has anyone implemented any other solution to getting the exception
message on the DLQ?

Hope someone can help.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message