Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3966210EC4 for ; Mon, 5 Aug 2013 12:46:38 +0000 (UTC) Received: (qmail 47365 invoked by uid 500); 5 Aug 2013 12:46:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 47277 invoked by uid 500); 5 Aug 2013 12:46:11 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 97788 invoked by uid 99); 5 Aug 2013 07:04:54 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of acceptany@gmail.com) Date: Mon, 5 Aug 2013 00:03:29 -0700 (PDT) From: smith_jor To: users@activemq.apache.org Message-ID: <1375686209432-4670089.post@n4.nabble.com> Subject: when Consumer consume a message using method receive(), why the mesage does not dequeue from activeMQ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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=EF=BC=9F 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-Co= nsumer-consume-a-message-using-method-receive-why-the-mesage-does-not-deque= ue-from-activeMQ-tp4670089.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.