Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 75311 invoked from network); 26 Apr 2006 17:06:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 17:06:05 -0000 Received: (qmail 20208 invoked by uid 500); 26 Apr 2006 17:06:02 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 20167 invoked by uid 500); 26 Apr 2006 17:06:02 -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 20123 invoked by uid 99); 26 Apr 2006 17:06:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 10:06:02 -0700 Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.237.51.194] (HELO green.rootmode.com) (199.237.51.194) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 10:06:01 -0700 X-ClientAddr: 68.171.62.46 Received: from [192.168.15.104] (68-171-62-46.vnnyca.adelphia.net [68.171.62.46]) by green.rootmode.com (8.12.10/8.12.10) with ESMTP id k3QH5Xxa010380 for ; Wed, 26 Apr 2006 13:05:33 -0400 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <466797bd0604260632r147bd3c3u898774514f07e324@mail.gmail.com> References: <2ed2f49c0604210240i6aeb689dnf5baf7e5f0cd7bd0@mail.gmail.com> <466797bd0604250734l7a09562eg34be2e8d1826bd8a@mail.gmail.com> <466797bd0604260015p7368f630h9414a9cafa0c6be3@mail.gmail.com> <444F24D8.7070804@worldonline.fr> <2ed2f49c0604260501sc22dfcbg4ace0ca0894efd54@mail.gmail.com> <444F6BD7.1030202@worldonline.fr> <466797bd0604260632r147bd3c3u898774514f07e324@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: Implementing Global JNDI Date: Wed, 26 Apr 2006 10:05:38 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.749.3) X-RootMode-MailScanner-Information: Please contact the ISP for more information X-RootMode-MailScanner: Found to be clean X-MailScanner-From: dain@iq80.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Are you planning on making the J2EE component enviroment (java:comp/ env) writable? I can see making the global tree writable, but am concerned about making the component environment itself writable. The J2EE 1.4 spec page 64 states: The container must ensure that the application component instances have only read access to their environment variables. The container must throw the javax.naming.OperationNotSupportedException from all the methods of the javax.naming.Context interface that modify the environment naming context and its subcontexts I suppose we could add an optional flag for non-compliant applications to allow them to modify their environment, but I think the default for the component environment should be read-only. BTW, I am in favor of making everything else writable. -dain On Apr 26, 2006, at 6:32 AM, Manu George wrote: > Hi, Guillaume > I guess if a writable context is implemented still the approach > given above should work. As we will be using the ENCConfigBuilder > only to populate the ENC during startup the interfaces can be used > to refer to the gbeans representing the deployed artefacts. > Whatever we will be writing to context from apps would be done > after startup of server and lost at shutdown. So there would not > be any problem due to geronimo using interfaces to get the GBean > names as what we will be adding at runtime will not be gbeans and > we will not use ENCConfigBuilder. Am I right? > > Now a new property for jndiname will also be required in the plans > for the connectors. > > P.S.This property was actually present in the older versions of > geronimo but was removed. I also remember david jencks mentioning > in the mailing list that he had a working implementation of a > context which he removed for some reason. > > Thanks > Manu > > > > > >On 4/26/06, Guillaume Nodet < guillaume.nodet@worldonline.fr> wrote: > > > > > >>When a JNDI context is created for a given configuration, the > interface > >>name is used to determine the name of the gbean that will be > mapped to > >>this JNDI reference (and to create a proxy ?). > >>Take a look at o.a.g.naming.ENCConfigBuilder#addResourceRefs. > >>But I guess this is irrelevant if the objects are bound when they > are > >>created. > >> > >>Btw, should the global JNDI tree be read-only, or read-write ? > >>IMHO, a read-write global JNDI tree would be very usefull. > >> > >>Cheers, > >>Guillaume Nodet > >> > >> > >>Manu George wrote: > >> > >> > >> > >>>Thanks David. > >>> > >>>Guillaume , Which proxy in the JNDI Tree are you referring where > >>>geronimo requires the main interface name? Are you speaking of > >>>UserTransaction etc? I thought those were standard names that we > can > >>>use to access them and will not be provided in DD? Please > clarify and > >>>correct me if I am wrong. > >>> > >>>Thanks > >>>Manu > >>> > >>>On 4/25/06, *David Jencks* >>>> wrote: > >>> > >>> It's required for corba ejb references. > >>> > >>> david jencks > >>> > >>> On Apr 25, 2006, at 7:34 AM, Manu George wrote: > >>> > >>> > Hi, > >>> > I have a question regarding one of the objects > present in > >>> > the current application local JNDI Context. What is the > >>> > HandleDelegate entry for? > >>> > > >>> > Thanks > >>> > Manu > >>> > >>> > >>> > >>> > > > > > > > > >