activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Boorshtein <mboorsht...@gmail.com>
Subject Re: Is it possible to add a property to a message prior to rollback?
Date Wed, 10 Sep 2014 15:38:24 GMT
Thats what I'm looking for to get the exception out of the failed message,
but how do I set it when I fail the message?  There's no arguments to the
session.rollback() method and I don't see anything on the message its self.


Any help is greatly appreciated.

Thanks
Marc

On Wed, Sep 10, 2014 at 10:10 AM, Gary Tully <gary.tully@gmail.com> wrote:

> not really.
>
> Peek at
> https://github.com/apache/activemq/blob/d54e0d6ab590b6a6148a5e2629c45b95d3f40eb8/activemq-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java#L285
> for a unit test that covers the setting of the dlqDeliveryFailureCause
> property on a message in the DLQ.
>
> if a listener fails with an exception the cause (as as string) is
> propagated back to the broker in the poison ack and gets added to the
> message when it is added to the DLQ. A browser of the DLQ can see the
> cause property.
>
> On 10 September 2014 11:41, Marc Boorshtein <mboorshtein@gmail.com> wrote:
> > I'm trying to add a stacktrace to a message if its been rolled back as a
> > property.  Is this possible?
> >
> > Thanks
> > Marc
>
>
>
> --
> http://redhat.com
> http://blog.garytully.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message