Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 78616 invoked from network); 4 Feb 2005 08:41:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Feb 2005 08:41:57 -0000 Received: (qmail 81011 invoked by uid 500); 4 Feb 2005 08:41:53 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 80970 invoked by uid 500); 4 Feb 2005 08:41:53 -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 Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 80956 invoked by uid 99); 4 Feb 2005 08:41:53 -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 mail04.syd.optusnet.com.au (HELO mail04.syd.optusnet.com.au) (211.29.132.185) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 00:41:51 -0800 Received: from [192.168.0.2] (d220-236-172-209.dsl.nsw.optusnet.com.au [220.236.172.209]) (authenticated bits=0) by mail04.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j148fjIr030391 for ; Fri, 4 Feb 2005 19:41:48 +1100 Message-ID: <42033620.70304@optusnet.com.au> Date: Fri, 04 Feb 2005 19:45:20 +1100 From: Gianny Damour User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: ObjectInputStream with classloading References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 4/02/2005 5:02 AM, David Jencks wrote: > 1. tranql has 2 implementations, one using the thread context cl and > one using a known classloader. These are both broken. However, > tranql is required to build geronimo "modules" so I dont think we > should have tranql require geronimo "modules" as well. Any ideas? > Does the TCCL one actually need the TCCL? The TCCL one (SerializableConverter.TCCLObjectInputStream) can be replaced by one using the configurationClassLoader of the Configuration which has loaded it. AFAIK, the one using a known ClassLoader (FieldMarshaller.MarshalledInputStream) can not be used "as is". Instead, a not yet existing ClassLoaderDelegate (similar to DataSourceDelegate and TransactionManagerDelegate) needs to be provided. Regarding the correct implementation of the ObjecInputStream to support arrays and proxies, I assume that we will have to copy and paste the Geronimo helpers to TranQL. Is that OK? Thanks, Gianny