Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 1868 invoked from network); 9 May 2007 15:24:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 15:24:37 -0000 Received: (qmail 58048 invoked by uid 500); 9 May 2007 15:24:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58031 invoked by uid 500); 9 May 2007 15:24:43 -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 58022 invoked by uid 99); 9 May 2007 15:24:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 08:24:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 08:24:35 -0700 Received: by wx-out-0506.google.com with SMTP id h29so222659wxd for ; Wed, 09 May 2007 08:24:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GPCLUHpDTtPSuaRSGA5Sr10nUShi2xIdOI7xEoo8V5MKHz9ImD/PKCHOvsSbm2DDC9B0o9pZ9u0cyTL5VFNqw8U0Y5qAuEhIXVB2pLakx+rDHunToOUB5pe8xWc3Xz584pl+4Iut8seP5wQRoLqzxmjMO/G4gZNWF7nt+DISC2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B1D04VoLfT+jy07dnwGy9VqCQrr1Oqyo/ZrJDBOx+vL5KZRPbj3YCnusYuut0TJ7gmsoXGHZ/LrNOQS9eiDUWtotdRurZtpkJDAa0INTXhS5Qfga++alv/dixziCIATGV1/UOn7uAzcHcLMTpgl7h254RNFw9wJtq8ABis+NK2I= Received: by 10.90.99.20 with SMTP id w20mr454211agb.1178724255311; Wed, 09 May 2007 08:24:15 -0700 (PDT) Received: by 10.90.105.5 with HTTP; Wed, 9 May 2007 08:24:15 -0700 (PDT) Message-ID: Date: Wed, 9 May 2007 08:24:15 -0700 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Possible to Trade an In-Memory Queue between producer instances with embedded brokers? In-Reply-To: <68B9548ED9F8A341B21CDB320655D613026FE6DA@mercury.nmwco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <68B9548ED9F8A341B21CDB320655D613026FE6DA@mercury.nmwco.com> X-Virus-Checked: Checked by ClamAV on apache.org On 5/9/07, Chris Hofstaedter wrote: > I'm using 4.0.2 on various Windows machines. > > > > I've got a producer with an embedded broker with a > MemoryPersistenceAdapter wrapped in a Log4J appender. At times, the > log4j.xml file may change in ways that affect the way the > producer/embedded broker are configured. When the change is detected, > Log4J will destroy and recreate the appender instance. This results in > all of my in-queue messages being lost. > > > > Unfortunately, making the embedded broker actually persist to disk not > an option for me. > > > > I'd like to find a way to swap the local memory queue from the embedded > broker associated with the old producer instance to the one associated > with the new (after config change) producer instance. By default when using the vm:// transport the broker is started up when the first connection is created; then destroyed when the last connection closes. If you don't want that - e.g. you want to run an embedded broker for the duration of your process - just explicitly create one up front on startup... http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html -- James ------- http://macstrac.blogspot.com/