Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 65594 invoked from network); 5 Oct 2007 14:59:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 14:59:01 -0000 Received: (qmail 35900 invoked by uid 500); 5 Oct 2007 14:58:50 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 35853 invoked by uid 500); 5 Oct 2007 14:58:49 -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 35844 invoked by uid 99); 5 Oct 2007 14:58:49 -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:58:49 -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 email.wtam@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 14:58:50 +0000 Received: by py-out-1112.google.com with SMTP id p76so1065604pyb for ; Fri, 05 Oct 2007 07:58:29 -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:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=m5MgorYevdmKNg57+aXVxF7NGZmJ1d2Mcgs9fd4eL7M=; b=H77vRNQyVBupHUNOlpqvgwlU7lP5s14dhYy/BsNruRjJR3BImMdMBnbLE93wgGytleq2DNDovlqooSFYZrltCBRkM8cl/+JrK+7PwqY82Bo7AkFsd9Vj653wwEkO4Nf0c5Nem1XvtrcFD2enHXjELZ1DcM34z9DI0RJ2xMZLx3g= 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=HnhKXKZzdEvenq6z/tfdj6XXNl9eILZzXm5yIaPhfQDyw3oBbUIOT+nRfWz022tOdP+dnomGLQKaLYn6cumqkZPGIsHLD2icAj39th8II0Nekk+pbw1JfeZSxiT+9AMVdY+jBWomn6Lva+gd2OBh0WVVeoNJPWxw3VJJN4GULF8= Received: by 10.65.154.2 with SMTP id g2mr21327240qbo.1191596309400; Fri, 05 Oct 2007 07:58:29 -0700 (PDT) Received: by 10.65.203.9 with HTTP; Fri, 5 Oct 2007 07:58:29 -0700 (PDT) Message-ID: Date: Fri, 5 Oct 2007 10:58:29 -0400 From: "William Tam" 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-Virus-Checked: Checked by ClamAV on apache.org Good call. Thanks. On 10/5/07, Hiram Chirino wrote: > 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 >