Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 49851 invoked from network); 5 Oct 2007 14:13:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 14:13:39 -0000 Received: (qmail 56068 invoked by uid 500); 5 Oct 2007 14:13:28 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 56022 invoked by uid 500); 5 Oct 2007 14:13:28 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 56013 invoked by uid 99); 5 Oct 2007 14:13:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 07:13:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirino@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 14:13:30 +0000 Received: by wa-out-1112.google.com with SMTP id k22so586682waf for ; Fri, 05 Oct 2007 07:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=TcL1GONEMiDMwjtuAN5CowfKRyy6Q/ZEgsLvoVmzZvw=; b=MW3xNgcduhiJiKCrupUdiZoSHrtm3oMm5F/mqvdT4U8K97//i+6ISofZwjWuUesrfbLmELCYsOC1+l62rLvRuyG1Y4LmdF5gOsojoGCaUVujEY6opOzG/nVgCbYfBJpqdXLvXP/VoQWsNia7xHvvK/7bC5MpLv49G4LScBDSi74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UXktXwRAOPWs3JhA5c8r0aGqH00l239mg19vtCg5yn6aRY8SHhNBnppziFJBddA0xR7l8ktAuMBOuW6G07HR/at0Klx0KUQs9ZXRgUbSMl25sNYw/n848mcdfUSZcfs2aOevFyWvWo+/yBZ3u9KhAcTeRXqjIiTIj4aD7DIigC4= Received: by 10.115.14.1 with SMTP id r1mr794771wai.1191593589126; Fri, 05 Oct 2007 07:13:09 -0700 (PDT) Received: by 10.114.194.12 with HTTP; Fri, 5 Oct 2007 07:13:09 -0700 (PDT) Message-ID: Date: Fri, 5 Oct 2007 10:13:09 -0400 From: "Hiram Chirino" Sender: chirino@gmail.com To: camel-dev@activemq.apache.org Subject: Re: VmComponent In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 82936b16660481c7 X-Virus-Checked: Checked by ClamAV on apache.org commited in rev 582282 On 10/5/07, Hiram Chirino wrote: > Hi William, > > Actually that only makes sense if we keep a global reference counter > too. Cause we only want to clear out the queues once the last > instance of the Vm component is shutdown. > > Will work on it in a bit. > > On 10/4/07, William Tam wrote: > > We might want to add this to VmComponent as a way to clear out the > > static Map of BlockingQueues. Notice that once the vm component has > > been stopped, entriies in the queues are deleted. Starting it again > > will start with a clean slate. > > > > @Override > > protected void doStop() throws Exception { > > super.doStop(); > > synchronized (queues) { > > for (BlockingQueue q : queues.values()) { > > q.clear(); > > } > > queues.clear(); > > } > > } > > > > > -- > Regards, > Hiram > > Blog: http://hiramchirino.com > -- Regards, Hiram Blog: http://hiramchirino.com