Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 6786 invoked from network); 25 May 2005 15:42:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2005 15:42:54 -0000 Received: (qmail 10226 invoked by uid 500); 25 May 2005 15:42:44 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 10180 invoked by uid 500); 25 May 2005 15:42:44 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 10158 invoked by uid 99); 25 May 2005 15:42:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO mgd.gluecode.com) (64.14.202.141) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 25 May 2005 08:42:40 -0700 Received: from [192.168.1.105] (dsl093-038-137.pdx1.dsl.speakeasy.net [66.93.38.137]) (authenticated bits=0) by mgd.gluecode.com (8.12.10/8.12.10) with ESMTP id j4PFfxCW020307 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Wed, 25 May 2005 08:42:00 -0700 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <5CDD73B3-7CA1-4872-A1E5-6864B88CD2E2@hiramchirino.com> References: <5CDD73B3-7CA1-4872-A1E5-6864B88CD2E2@hiramchirino.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Why are gbeans not serialized but the gbean attributes are? Date: Wed, 25 May 2005 08:42:29 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I like your idea of having gbean-like complex attributes. I don't have time right now to think about it and I don't know offhand how we could make it work. thanks david jencks On May 25, 2005, at 6:50 AM, Hiram Chirino wrote: > That still does not make sense since you are talking about attributes. > So now we are saying attributes have to be serializable except the > magic ones which are not serializable. Kinda does not make too sense. > > It also does not really explain why complex gbeans get the nifty > runtime construction support but complex attributes do not. > > Regards, > Hiram > > On May 25, 2005, at 9:23 AM, Srinath Perera wrote: > >> Hi Hiram; >> >> I will try to give a possible reason .. >> >> Not all the attributes in the GBeans are serializable, e.g. >> ClassLoader, kernel attributes >> in a GBean are not serializable, and have a special meaning in the >> enviorment it runs. >> >> those so called magic attributes get the values from the enviorment .. >> so serializing them do not make sense. I belive this is a reason >> making attributes Serializable (only the persitant ones), but not the >> GBeans, >> >> Thanks >> Srinath >> >> On 5/21/05, Hiram Chirino wrote: >> >>> I've been trying to analyze the reason why gbean attributes HAVE to >>> be >>> serializable. >>> >>> The facts are that: >>> 1. A gbean itself does not need to be serializable. >>> 2. Only the gbean attributes are serialized. >>> 3. The de-serialized attributes are injected at runtime to >>> construct >>> the gbean. >>> >>> My question is why does a gbean get different treatment than >>> attribute? >>> I've got a feeling it's this way because gbeans are complex objects >>> while most gbean attributes are simple types. But we are starting to >>> see gbean objects that have complex attribute types. >>> >>> Why not also give gbean attributes the kind of runtime construction >>> support that is given to gbeans? If this was done, then you don't >>> force complex attributes to implement the Serializable interfaces. >>> This could go a long way in helping solve some of the serialization >>> issues that are being discussed in other threads. >>> >>> Regards, >>> Hiram Chirino >>> >>> >> >