Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 92036 invoked by uid 500); 21 Aug 2003 02:24:01 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 91929 invoked from network); 21 Aug 2003 02:23:59 -0000 Received: from adsl-209-233-18-245.dsl.snfc21.pacbell.net (HELO public.coredevelopers.net) (209.233.18.245) by daedalus.apache.org with SMTP; 21 Aug 2003 02:23:59 -0000 Received: from tiger (gateway [192.168.2.253]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by public.coredevelopers.net (Postfix on SuSE Linux 8.0 (i386)) with ESMTP id B4EE019A8D for ; Wed, 20 Aug 2003 18:23:58 -0700 (PDT) From: "Jeremy Boynes" To: "Geronimo-Dev" Subject: [JNDI] Check-in of simple impl Date: Wed, 20 Aug 2003 18:30:19 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have checked in a simple impl of JNDI for the java: namespace (o.a.g.naming.java) This is based on a couple of assumptions: * that the comp Context for a component is immutable so can be heavily indexed * that the majority of lookups are for simple strings (e.g. "env/jdbc/MyDS") * that we do not need to bind anything to the java: namespace except java:comp/... The component Context is taken from a ThreadLocal rather than the context ClassLoader because for EJBs several components may share the same classloader. For an EJB this is easy to set up in an Interceptor during invocation. I am not sure how a Web Container can set this up yet (maybe in a Valve or equivalent). -- Jeremy