Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 87504 invoked from network); 17 Jan 2005 06:28:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Jan 2005 06:28:25 -0000 Received: (qmail 69153 invoked by uid 500); 17 Jan 2005 06:28:22 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 68918 invoked by uid 500); 17 Jan 2005 06:28:21 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 68905 invoked by uid 99); 17 Jan 2005 06:28:21 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from garuda-95.cablenet.com.ni (HELO ags01.agsoftware.dnsalias.com) (165.98.147.95) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 16 Jan 2005 22:28:20 -0800 Received: from ags01.agsoftware.dnsalias.com (localhost.localdomain [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.11/8.12.10) with ESMTP id j0H6SDwG011508 for ; Mon, 17 Jan 2005 00:28:13 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.11/8.12.11/Submit) id j0H6SDd2011507; Mon, 17 Jan 2005 00:28:13 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agssa.net using -f Received: from 10.0.0.5 (SquirrelMail authenticated user agallardo); by www.agssa.net with HTTP; Mon, 17 Jan 2005 00:28:13 -0600 (CST) Message-ID: <33197.10.0.0.5.1105943293.squirrel@www.agssa.net> In-Reply-To: <41E8E319.8090009@apache.org> References: <20050109003528.55029.qmail@minotaur.apache.org> <41E530AB.6040504@reverycodes.com> <36839.10.0.0.5.1105560123.squirrel@www.agssa.net> <41E59299.6050908@reverycodes.com> <41E84ED4.5090603@apache.org> <34785.10.0.0.5.1105763563.squirrel@www.agssa.net> <41E8E319.8090009@apache.org> Date: Mon, 17 Jan 2005 00:28:13 -0600 (CST) Subject: Re: There are no long lived serialized objects in Cocoon (was Re: svncommit: r124693) From: "Antonio Gallardo" To: dev@cocoon.apache.org User-Agent: SquirrelMail/1.4.3a-6.FC2 X-Mailer: SquirrelMail/1.4.3a-6.FC2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sab, 15 de Enero de 2005, 3:32, Sylvain Wallez dijo: > Antonio Gallardo wrote: > What shared remote caches? Do you have that already? Apache JCS allows to setup remote cache. > And the problem > here is not having different *java* versions, but different *cocoon* > versions using the same hypothetical remote cache. And that would seem a > very bad thing to me to have different Cocoon version share their > caches. Not only because of class versions, but also because different > versions may also mean different sitemaps, different XSLs, etc, leading > the cached content to be actually different for the different Cocoon > instances. Not only different cocoons version. I read that diferent JVM versions use diferents methods to compute the serialVersionUID for the same version of a class. As a sample I think there was JVM 1.3 vs. JVM 1.4, IBM and GNU also compute it diferent too. >>If we have made the decisions to serialize some classes, we need to >> finish >>the work to avoid potential problems. > > Sorry, I should have missed that: when have we made such decision? Can > you point me to the archives? I can point you to the code that we ship and shipped before. I don't know when that was decided, but the code is there. :-D >>That means that no matter we do we already have one there! > > Yes, but it is automatically generated for us, which is good as we don't > need long lived serialized objects, and therefore don't have to consider > class compatibility issues at the serialization level. Let just the JDK > produce the uid for us and throw a nice java.io.InvalidClassException if > ever, by mistake, we try to deserialize something that we should not. See this: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4651879 Closed in 1.4 but seems to live in 1.3. > Again, Cocoon isn't a distributed system and sharing serialized objects > between different version (either across space or time) is not a concern > for Cocoon. I was not talking about Cocoon. But it could be used in a distributed system too or not? After all, Cocoon is a servlet. > > >>I am also planning to add Read/Write Object methods on some of this >> classes. > > That's precisely the additional job I want us to avoid to maintain. Niclas told that writing this methods we can improve the cocoon performance, but I am not sure of that. Well, in any case, I already reverted the changes. Best Regards, Antonio Gallardo