activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: unable to get dequeued message from queue using java
Date Sat, 29 Sep 2012 13:33:45 GMT

Can you try with CLIENT_ACKNOWLEDGE instead. It seems this is what you
are doing.

What version of ActiveMQ are you using?

On Fri, Sep 28, 2012 at 2:25 PM, agarwalishant
<> wrote:
> Hello Everyone,
> I am using activemq where my publisher class used queue for sending
> persistent messages and consumer class used to dequeued mesages from the
> selected queue, below given code which I am suing for the same:-
> Now when i first run my publisher class it sends message and then when i run
> my consumer class it tooks the message from queue but when i stop my
> consumer class and then restart it, it again took the same message which it
> consumes before.kindly correct me where i am doing wrong code and enable me
> to consumer only those messages which did not consumer ever before.
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message