You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by lfernandez <ls...@urbe.edu.ve> on 2019/04/16 21:14:52 UTC

Re: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value

Hey this may be way late, but what if u can't switch to
SimpleMessageListenerContainer and can only use
DefaultMessageListenerContainer, I'm having the same issue where the cause
in the dlq cause property comes back as null 



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value

Posted by lfernandez <ls...@urbe.edu.ve>.
Hey Tim, thanks for your answer, sorry for the delay,

it's true that the Spring DMLC does a message.consume then calls client code
(exception happens) Spring tries to rollback, which executes the code in
ActiveMQMessageConsumer.rollback() where I think the redelivery policy kicks
in, I think the main problem is that the lastMd.getRollbackCause() is not
populated, even if there's no DMLC, how are we supposed to deal with
messages that are pulled out of ActiveMQ and get an exception, I only see
that we do a .setRollBackCause when there's a message.dispatch which happens
only if we don't pull. 

that's the main different between DMLC and SMLC, the first one does pulling
and the second one gives more control to activemq to do work. Correct me if
I'm wrong :) thanks again for your answer.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value

Posted by Tim Bain <tb...@alumni.duke.edu>.
Gary's explanation from 8 years ago indicated that this was controlled by
Spring's DMLC implementation, and outside of ActiveMQ's control. Do you
have any information to indicate that that's no longer the case? If not,
you'd need to pose your question to the Spring community, since it's their
code you're asking about.

Tim

On Tue, Apr 16, 2019, 3:23 PM lfernandez <ls...@urbe.edu.ve> wrote:

> Hey this may be way late, but what if u can't switch to
> SimpleMessageListenerContainer and can only use
> DefaultMessageListenerContainer, I'm having the same issue where the cause
> in the dlq cause property comes back as null
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>