activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akhettar <>
Subject Re: Message Ack and Original Request correlation.
Date Wed, 23 Mar 2016 09:07:11 GMT
Just for the benefit for anyone who may face the same issue. The alternative
solution is to override the messageConsumed(*,*) method. This will get
triggered for each message consumed by the client and you can apply filter
on whichever queue you're interested to listen on.


public void messageConsumed(final ConnectionContext context, final
MessageReference messageReference) {
        if (isOutDestination(messageReference) &&
!isPurged(messageReference)) {
  "Recording acknowledgement for messageId: {}",
        getNext().messageConsumed(context, messageReference);

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

View raw message