activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@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 15:17:55 GMT
yah, if you post your code we can know exactly what you're trying to do.
sounds like you might be using a queue browser instead of a consumer, and
your ack mode may not be what you're intending....


On Mon, Aug 5, 2013 at 12:03 AM, smith_jor <acceptany@gmail.com> 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.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message