Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 76514 invoked from network); 3 Oct 2004 16:32:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Oct 2004 16:32:44 -0000 Received: (qmail 90511 invoked by uid 500); 3 Oct 2004 16:32:36 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 90447 invoked by uid 500); 3 Oct 2004 16:32:35 -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 90432 invoked by uid 99); 3 Oct 2004 16:32:35 -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 [64.14.202.141] (HELO mgd.gluecode.com) (64.14.202.141) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 03 Oct 2004 09:32:35 -0700 Received: from [10.0.1.6] (ca-stmnca-cuda2-blade8b-82.stmnca.adelphia.net [68.65.226.82]) (authenticated bits=0) by mgd.gluecode.com (8.12.10/8.12.10) with ESMTP id i93Gfp1q016365 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sun, 3 Oct 2004 09:41:52 -0700 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: Connector Work ClassLoader Date: Sun, 3 Oct 2004 09:32:34 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Aaron it problem is setting the thread context classloader is a very very expensive operation, so tend not to do it unless required by the spec. For example, a gbean no longer operates in a TCCL since setting it was taking 80% of our execution time. -dain -- Dain Sundstrom Chief Architect Gluecode Software 310.536.8355, ext. 26 On Oct 3, 2004, at 9:17 AM, Aaron Mulder wrote: > On Sun, 3 Oct 2004, David Jencks wrote: >> I've spent some time looking at the j2eeca 1.5 spec again and can't >> fine any mention of which thread context classloader a Work submission >> is supposed to operate under. Therefore I think if you want your >> adapter to be portable you should not make any assumptions about it >> and >> we have no need to set the thread context classloader ourselves. So, >> while I'm open to discussion, so far I'm -1 on this. > > I don't understand. If the spec is unclear (and I didn't even > look so it may well be), why don't we take the option that is friendly > to > developers, instead of the option that will likely break things? It > may > be nice in practice to point out to people when their code is not > perfectly portable, but it would be even nicer if their code just ran. > I > can understand being -1 on my non-portable Work code, but I can't agree > with being -1 on providing a more forgiving Connector implementation. > > FYI, when I encountered this, it was because I tried to read a > SOAP message in my Work, and the SAAJ API implementation apparently > uses > the TCCL to load its implementation. So I wasn't doing anything > particularly offensive here, and it wasn't even clear why a ClassLoader > should be involved (after all, if i can instantiate SAAJ classes, > doesn't > that automatically mean that they're accessible to me? Well, in this > case, the API was but the implementation wasn't because it doesn't use > Class.forName). > > Aaron