Hi

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
<agarwalish...@hotmail.com> 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: 
> http://activemq.2283324.n4.nabble.com/unable-to-get-dequeued-message-from-queue-using-java-tp4657156.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to