activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: when Consumer consume a message using method receive(), why the mesage does not dequeue from activeMQ?
Date Mon, 05 Aug 2013 13:28:49 GMT
On 08/05/2013 03:03 AM, smith_jor wrote:
> I'm a beginner with activemq, now I try to use method receive() in class
> MessageConsumer.
>
> yes , it can get messages successfully. but when I browse this queue, these
> messages still in it?
>
> How can I receive a message ,at same time delete this message from queue ?
> since when I restart consumer , I don't want to get old mesages.
>
>
> also, if messages can't dequeue form queue, the memory used by  activemq
> will become larger and larger.
> How activemq handles this case?
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/when-Consumer-consume-a-message-using-method-receive-why-the-mesage-does-not-dequeue-from-activeMQ-tp4670089.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
We need more info, what acknowledge mode is your session in?  Can you 
show us some code?

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message