Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 58754 invoked from network); 6 Oct 2006 15:11:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2006 15:11:32 -0000 Received: (qmail 96477 invoked by uid 500); 6 Oct 2006 15:11:31 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 96436 invoked by uid 500); 6 Oct 2006 15:11:31 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 96402 invoked by uid 99); 6 Oct 2006 15:11:31 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2006 08:11:31 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=asmuts@yahoo.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [209.191.125.86] ([209.191.125.86:29313] helo=web38710.mail.mud.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 93/63-24193-E1276254 for ; Fri, 06 Oct 2006 08:11:27 -0700 Received: (qmail 44310 invoked by uid 60001); 6 Oct 2006 15:11:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LNeT/WBi5QVwzZwk8jY0d9eEFdQwyFRq+PeHqQi4IqHkl6oJp26xw+Jd32UmI7zWcb7jp4XZog8pqcawNEAjaR+USCgLKdTeOEvUJE/ILJFQn2wQhsJDHm5zk13foaoebd9/1NBsF7zWclNyYMW/rY/0okZEffT8TRWl8fBKO2s= ; Message-ID: <20061006151124.44308.qmail@web38710.mail.mud.yahoo.com> Received: from [151.193.220.27] by web38710.mail.mud.yahoo.com via HTTP; Fri, 06 Oct 2006 08:11:24 PDT Date: Fri, 6 Oct 2006 08:11:24 -0700 (PDT) From: Aaron Smuts Subject: Re: Removing singleton design of JCS To: JCS Users List In-Reply-To: <35DC02724A9D12418D84928ECB5A34F7323DFF@nues-exc03-23.100world.global> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No, we are not currently working on removing the enforced singleton nature of JCS, but yes it would be somewhat useful if you could run multiple instances in a vm The only things that rely on the singleton nature are the remote and lateral listeners. I started making changes such that the listeners would be passed a cache manager on construction. I think it is nearly complete. There are a few static lists and maps in the various managers that would have to change too. We should try to come up with a list and then go from there. Any help is, of course, appreciated. (Yes, JBoss cache is awful. I've discussed it before on the list. . . . EH is a stripped down version of JCS with almost none of the features. The orignal code was JCS about 4 years ago . . . . . Please don't get me started.) Cheers, Aaron --- Denis Pasek wrote: > Hi, > > > > it would be nice if JCS wouldn't rely on singletons > (this mainly affects > the CompositeCacheManager) in the VM / local > classloader. Scanning the > source code it should be quite easy to refactor JCS > to a POJO based > approach since there are only a few spots where > classes rely on the > singleton behaviour of the composite cache manager > (eg. remote > listeners). The hooks in the CompositeCacheManager > for extension (see > CompositeCacheManager.createInstance() ) won't work > since these methods > are static and so don't support polymorphism. > > Scanning the Subversion repository I found a branch > "removing singleton > core". Does this mean you're already working on a > non-singleton version? > If so, is there a planned release date/version for > this redesign? Maybe > I can contribute to this refactoring. > > > > I think JCS is really a nice cache und compares very > well to EHCache and > especially JBossCache. I've worked with these two > competitors before. > EHCache is ok, but JBossCache is quite a disaster. > It has tons of > dependencies and the source code is a real mess. > > > > > > Denis > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org