Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 60838 invoked from network); 10 Sep 2010 17:17:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 17:17:17 -0000 Received: (qmail 56205 invoked by uid 500); 10 Sep 2010 17:17:17 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 56190 invoked by uid 500); 10 Sep 2010 17:17:16 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 56182 invoked by uid 99); 10 Sep 2010 17:17:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 17:17:16 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marnie.mccormack@googlemail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-iw0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 17:17:10 +0000 Received: by iwn37 with SMTP id 37so2682472iwn.15 for ; Fri, 10 Sep 2010 10:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=84Z/IZPEk3ZyX+p7uwprzGiojx8UIx+jyLNdsTYAPQA=; b=iX16JOXuqzJPx6PBCf2Ah+lrXiTwPq+ecEqvKyl6ELTkCauFSFbC0EyNtlPscuL6uq jqBkvGp1KqFaJ2GTOEu35tSPK+vfxZV8OYFhJXZWaa3BQ7y6v1z0qCH+a+yfFtn06FY8 5Xhy/5FiALsxQJ2KBVwLObORQ4rHAHKQ+5qEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Gn8+tMew9A/epTw6TIhV0G2VZwrpoptzLrw8StCNiBz2O2oibFmBeG4UgrEwpHzSJu KmTeiN9QWO71C9SGXHiLEofZOxHAI5rzI1xnm9Nkzv9h1uG2lnKyJoEcSQtCn82T8t45 wisnoGeoyYgoGuTc1ELtzGAPjpbANDCBrezyM= MIME-Version: 1.0 Received: by 10.231.11.65 with SMTP id s1mr1270555ibs.134.1284139008718; Fri, 10 Sep 2010 10:16:48 -0700 (PDT) Received: by 10.231.33.74 with HTTP; Fri, 10 Sep 2010 10:16:48 -0700 (PDT) In-Reply-To: References: <1284038446833-5514404.post@n2.nabble.com> Date: Fri, 10 Sep 2010 18:16:48 +0100 Message-ID: Subject: Fwd: How can I make the message in queue auto deleted? From: Marnie McCormack To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=0022152d679174f816048feae930 X-Virus-Checked: Checked by ClamAV on apache.org --0022152d679174f816048feae930 Content-Type: text/plain; charset=ISO-8859-1 Hi, Messages are only removed from the broker once they have been acknowledged by the consuming client. This is standard JMS behaviour, as opposed to Qpid specific logic. This page tells you more about ack modes in Qpid: https://cwiki.apache.org/qpid/qpid-design-message-acknowledgement.html What acknowledgement mode are you using - how do you ack the messages once consumed ? Regards, Marnie On Thu, Sep 9, 2010 at 2:20 PM, zhaoyi0113@gmail.com wrote: > > I use Java client and Java-broker. Every time I start a subscriber, it will > get the messages from the queue. It seems that the messages always exist in > the queue. How can I make the message removed when it is published to a > subscriber? I use the default exchange amq.direct and below is the JNDI > properties: > > java.naming.factory.initial = > org.apache.qpid.jndi.PropertiesFileInitialContextFactory > connectionfactory.qpidConnectionfactory = > amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672' > destination.directQueue = > direct://amq.direct//message_queue?routingkey='routing_key' > > --0022152d679174f816048feae930--