Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 40989 invoked from network); 25 Apr 2006 14:56:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 14:56:25 -0000 Received: (qmail 25216 invoked by uid 500); 25 Apr 2006 14:56:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 25172 invoked by uid 500); 25 Apr 2006 14:56:22 -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 25161 invoked by uid 99); 25 Apr 2006 14:56:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 07:56:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [64.14.253.135] (HELO goku.simulalabs.com) (64.14.253.135) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 07:56:21 -0700 Received: from localhost (goku [127.0.0.1]) by goku.simulalabs.com (Postfix) with ESMTP id D88FCEC0437 for ; Tue, 25 Apr 2006 07:55:59 -0700 (PDT) Received: from goku.simulalabs.com ([127.0.0.1]) by localhost (goku.simulalabs.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15704-03-22 for ; Tue, 25 Apr 2006 07:55:58 -0700 (PDT) Received: from [84.98.156.238] (238.156.98-84.rev.gaoland.net [84.98.156.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by goku.simulalabs.com (Postfix) with ESMTP id 49FCEEC0422 for ; Tue, 25 Apr 2006 07:55:53 -0700 (PDT) Message-ID: <444E3874.7060205@worldonline.fr> Date: Tue, 25 Apr 2006 16:55:48 +0200 From: Guillaume Nodet User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Implementing Global JNDI References: <2ed2f49c0604210240i6aeb689dnf5baf7e5f0cd7bd0@mail.gmail.com> In-Reply-To: <2ed2f49c0604210240i6aeb689dnf5baf7e5f0cd7bd0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at goku.simulalabs.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I would be glad to help writing / testing this feature. Is the code available somewhere ? I also just have one question: when I was looking at how to use Geronimo JNDI implementation, i faced the problem that to access one of the proxy in the JNDI tree, Geronimo requires the main interface name (which is usually given by deployment descriptors). How did you work around that ? Cheers, Guillaume Nodet Krishnakumar B wrote: >Hi, > >In geronimo road map there was a requirement for implementing Global >JNDI for geronimo. > >An approach to implementing the same is posted below. Kindly post your >valuable feedback. > >* Write and Deploy a GBean For Global JNDI >* GBean on startup of server would introspect the server and build JNDI tree > - jdbc > - jms > - ejb etc... >* JNDI tree is stored in Hashmap and we can use >ComponentContextBuilder to build this tree. >* We can use EnterpriseNamingContext to create a context. >* The Context is stored as a static variable in the Local Factory Class. >* During deployment a new entry is added to Context ( Hashmap.) >* During undeployment an entry is removed from Context ( Hashmap ) >* We can reuse the existing the geronimo-naming package for directory >operations. > >We have done some initial ground work ( Writing Gbean, Building JNDI >Tree ) and would be glad to know how such an implementation would fit >into geronimo server, limitations if any so that we know we are using >the right approach. > >Regards >Krish > > > >