Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 55265 invoked from network); 18 Mar 2010 18:31:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 18:31:33 -0000 Received: (qmail 71480 invoked by uid 500); 18 Mar 2010 18:31:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 71452 invoked by uid 500); 18 Mar 2010 18:31:33 -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 71444 invoked by uid 99); 18 Mar 2010 18:31:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 18:31:33 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,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 bruce.snyder@gmail.com designates 209.85.220.210 as permitted sender) Received: from [209.85.220.210] (HELO mail-fx0-f210.google.com) (209.85.220.210) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 18:31:27 +0000 Received: by fxm2 with SMTP id 2so267222fxm.6 for ; Thu, 18 Mar 2010 11:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=1sw19nkmoVVFynGXveR27JYzzMMqgKwisGD/+0Mf2Qc=; b=CpIPdLxLKdZ4nwFYSuB5ifvlb7sSntz8B1d9tkFIZA7gTllMZaTZ0tmkfemigFlczK tyyh6ubHKjHQglyxGqk7E8pFzbj/ESPoY+q2FQ+Gab7wM4tuMbIg80THGveOODTvUBPq bfGLyXviOyjNivRv8u9yUg2OqjT5FuZapivqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bQV0pgqURcL/uroo78ams8vOoXUbUrJH3XKUegQT7Ur2txxeDVy8Nux2sAeJ3EuaPJ B0RUSXVbnNvAKZ0WvnYhBkePNjP2K2VVvQDwlfD6OnBuaA2pb8yZit0CuGtaz5/xMmZu WdZPyzCY5mpoPIzUgiY5j6Zw2oYuPEDbJFtMk= MIME-Version: 1.0 Received: by 10.223.161.204 with SMTP id s12mr2261409fax.103.1268937066250; Thu, 18 Mar 2010 11:31:06 -0700 (PDT) In-Reply-To: <27949458.post@talk.nabble.com> References: <27937801.post@talk.nabble.com> <7b3355cb1003171417i32118463pf7006a465aacd0a0@mail.gmail.com> <27947479.post@talk.nabble.com> <1268932799.2537.6.camel@localhost> <27949131.post@talk.nabble.com> <27949458.post@talk.nabble.com> Date: Thu, 18 Mar 2010 12:31:05 -0600 Message-ID: <7b3355cb1003181131o955b2dcwa482409f8fa8fd9@mail.gmail.com> Subject: Re: AMQ persistence not working for me From: Bruce Snyder To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Mar 18, 2010 at 12:15 PM, jumbro wrote: > > I just tested persistence using a QUEUE and... it works! > > So my question is: do topics offer this same functionality? If not, then > why? > > If topics do support persistence, then I'm still missing something.. Topics support durability which is slightly different. But with topics, messages will only be persisted if a durable subscription exists on the topic. Below is a description of durability vs. persistence that I wrote for chapter 2 of the forthcoming ActiveMQ In Action book: Two points within JMS that are often confused are message durability and message persistence. Though they are similar, there are some semantic differences but each has its specific purpose. Message durability can only be achieved with the pub/sub domain. When clients connect to a topic, they can do so using a durable or a non-durable subscription. Consider the differences between the two: Durable Subscription - A durable subscription is infinite. It is registered with the topic to tell the JMS provider to preserve the subscription state in the event that the subscriber disconnects. If a durable subscriber disconnects, the JMS provider will hold all messages until that subscriber connects again. Non-Durable Subscription - A non-durable subscription is finite. It's subscription state is not preserved by the JMS provider in the event that the subscriber disconnects. If a subscriber disconnects, it misses all messages during the disconnection period and the JMS provider will not hold them. Message persistence is independent of the message domain. Message persistence is a quality of service property used to indicate the JMS application's ability to handle missing messages in the event of a JMS provider failure. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E