Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

activemq queue problem

 
Ishant Agarwal
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic