Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 19565 invoked from network); 18 Feb 2004 20:17:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Feb 2004 20:17:55 -0000 Received: (qmail 81974 invoked by uid 500); 18 Feb 2004 20:17:39 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 81957 invoked by uid 500); 18 Feb 2004 20:17:39 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 81934 invoked from network); 18 Feb 2004 20:17:38 -0000 Received: from unknown (HELO mail.lokitech.com) (209.92.53.4) by daedalus.apache.org with SMTP; 18 Feb 2004 20:17:38 -0000 Received: from 209.92.53.102 ([209.92.53.102]) by mail.lokitech.com (JAMES SMTP Server 2.1.3) with SMTP ID 549 for ; Wed, 18 Feb 2004 15:17:41 -0500 (EST) Message-ID: <4033C9B0.1070001@lokitech.com> Date: Wed, 18 Feb 2004 15:23:12 -0500 From: Serge Knystautas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: Pooling impl that doesn't pool References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Danny Angus wrote: > Is there such a trivial pool impl available, or does anybody have clever > suggestions for how to do this? > > Dunno how clever this is, but I often use two hashes (table or map) (often > of vectors) to maintain a keyed pool (or pools where there can be more than > one instance for each key). > What I do is move the object from the "available" hash to the "busy" hash > to provide locking. > > I suspect that you might be able to use a similar strategy. Sorry, I've lost the context for this thread, but I use and like Jakarta's pool impl that does this. http://jakarta.apache.org/commons/pool/ -- Serge Knystautas President Lokitech >> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. sergek@lokitech.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org