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 506E910432 for ; Mon, 5 Aug 2013 15:18:28 +0000 (UTC) Received: (qmail 96875 invoked by uid 500); 5 Aug 2013 15:18:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 96604 invoked by uid 500); 5 Aug 2013 15:18:23 -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 Received: (qmail 96590 invoked by uid 99); 5 Aug 2013 15:18:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 15:18:21 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.215.54 as permitted sender) Received: from [209.85.215.54] (HELO mail-la0-f54.google.com) (209.85.215.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 15:18:15 +0000 Received: by mail-la0-f54.google.com with SMTP id ea20so2127682lab.41 for ; Mon, 05 Aug 2013 08:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MwMFRfDSPOQocD40kq7GquYHYyqTIbgKLI1fWgq0QtI=; b=LMIzZj16IcZVhHWbYGNU6+NNT3JKiNR4nVCnM1il/KCgTsqxSW0zf0W8+eFZIUy8qM HhFlxJy02LiCS787f978aXtLgVmAlCJ4vUxVg/B4ycX/DNWaK7qcurrdrk/w+Wg0/oXx RUiVrp9juQi3NuHD3K6moDRnu6tdHg5XBcE4uNYerLHAk8P3JHgHo9QuG8rfxMNyVoT7 4WQ1GdcX75DYmihyeOz/9uYAcBMWZuF8al4+eGNVQ0Q9U3ourelXEr3tlInFOHqFV64j KfisW5M2vpkE+aVLYjJUxE6PjfwRl0PN7n+G+QhFC7MEYjbs1XX802NSdB23AYon99PX RJCQ== MIME-Version: 1.0 X-Received: by 10.112.159.169 with SMTP id xd9mr9101615lbb.43.1375715875191; Mon, 05 Aug 2013 08:17:55 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Mon, 5 Aug 2013 08:17:55 -0700 (PDT) In-Reply-To: <1375686209432-4670089.post@n4.nabble.com> References: <1375686209432-4670089.post@n4.nabble.com> Date: Mon, 5 Aug 2013 08:17:55 -0700 Message-ID: Subject: Re: when Consumer consume a message using method receive(), why the mesage does not dequeue from activeMQ? From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=001a11c3cdba0d839504e334d04c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3cdba0d839504e334d04c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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, the= se > 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-Consumer-consume-a-message-usi= ng-method-receive-why-the-mesage-does-not-dequeue-from-activeMQ-tp4670089.h= tml > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --=20 *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --001a11c3cdba0d839504e334d04c--