Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 650 invoked from network); 3 Sep 2008 02:03:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2008 02:03:26 -0000 Received: (qmail 85714 invoked by uid 500); 3 Sep 2008 02:03:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 85686 invoked by uid 500); 3 Sep 2008 02:03: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 85675 invoked by uid 99); 3 Sep 2008 02:03:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 19:03:23 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 02:02:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kahhu-0000nf-1z for users@activemq.apache.org; Tue, 02 Sep 2008 19:02:54 -0700 Message-ID: <19281689.post@talk.nabble.com> Date: Tue, 2 Sep 2008 19:02:54 -0700 (PDT) From: Eugene79 To: users@activemq.apache.org Subject: persistence not working MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: spamacct11@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am investigating ActiveMQ as a message broker solution for our application. I set it up on my machine and tried sample ruby programs. So far it works fine when there is both a publisher and subscriber running. However, what I want to do is make sure that messages can be delivered even if the subscriber is temporarily unavailable. So, I set up persistence in activemq.xml: And changed line 44 in publisher.rb to @conn.send '/topic/event', @body, {'persistent'=>'true'} However, the messages get delivered only if listener.rb is also running. I want to be able to run publisher.rb, have the messages stored by activemq, then run listener.rb and retrieve all the messages that were sent. This doesn't work. How can I set this up? thanks, Eugene -- View this message in context: http://www.nabble.com/persistence-not-working-tp19281689p19281689.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.