Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 34932 invoked from network); 18 Jul 2006 13:37:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 13:37:55 -0000 Received: (qmail 66273 invoked by uid 500); 18 Jul 2006 13:37:48 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 66233 invoked by uid 500); 18 Jul 2006 13:37:48 -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 66151 invoked by uid 99); 18 Jul 2006 13:37:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 06:37:47 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of www.bkk@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 06:37:46 -0700 Received: by py-out-1112.google.com with SMTP id e30so1862408pya for ; Tue, 18 Jul 2006 06:37:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Vt5kUS/M/ZoZviX/u6DaUHhygSmaram8rexMfnqgBBLOYN6pYleMpSGvVok0N6lLdcSaxts4KuykT+kuDMHKtGLHCjLCEPIbOpSh1ITWOoJfPHCSxLsqk+ErK6Y3AzYytbxWzY8c4dg+EJdEBKFfNO7iCPSIq7D3lEByIakjX9E= Received: by 10.35.62.19 with SMTP id p19mr5510434pyk; Tue, 18 Jul 2006 06:37:26 -0700 (PDT) Received: by 10.35.43.3 with HTTP; Tue, 18 Jul 2006 06:37:25 -0700 (PDT) Message-ID: <2ed2f49c0607180637g2adb2500h521d14871c513f0f@mail.gmail.com> Date: Tue, 18 Jul 2006 19:07:25 +0530 From: "Krishnakumar B" To: dev@geronimo.apache.org Subject: Re: Implementing Global JNDI In-Reply-To: <3E8D4741-6761-40E2-8CCA-26A8A34434A8@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2ed2f49c0604210240i6aeb689dnf5baf7e5f0cd7bd0@mail.gmail.com> <90953110-05CA-4021-BF8D-BA8825CAB326@iq80.com> <2ed2f49c0605240610x17dba785qb14557ed785ff09@mail.gmail.com> <2ed2f49c0606230742y155c7395lf88a5610a9f1fbbc@mail.gmail.com> <1b5bfeb50606251412p5e24405u1f7c244e334a6060@mail.gmail.com> <2ed2f49c0606280017w5eb129e6yfecbd324ccd0942@mail.gmail.com> <466797bd0606280039o5a2ab480i92ff204620031dc7@mail.gmail.com> <40520A60-8808-4129-9757-F493E2CF37C7@yahoo.com> <2ed2f49c0607060606r7ef80c5bu78600d7d9601d132@mail.gmail.com> <3E8D4741-6761-40E2-8CCA-26A8A34434A8@yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi David, I have updated the JIRA-2153 with Context implementation and GBean that binds to JNDI. Kindly provide ur comments. Regards Krish On 7/6/06, David Jencks wrote: > See my comment in the jira about this, I don't think you need to use > any naming References at all, nor do you need anything but a GBean > reference to the appropriate GBean. > > http://issues.apache.org/jira/browse/GERONIMO-2153 > > thanks > david jencks > > On Jul 6, 2006, at 6:06 AM, Krishnakumar B wrote: > > > Hi David, > > > > I tried this and it works for Custom Resource Adapters. There is still > > a problem for Registering GBeans in Global JNDI through the builder ( > > ServiceConfigBuilder ). The Builder is a part of > > geronimo-gbean-deployer plan which is parent of j2ee-deployer. The > > geronimo-naming jars are loaded in j2ee-deployer. Hence we dont get > > access in ServiceConfigBuilder to GBeanReference thats part of naming. > > > > Currently all the binding GBeans are in naming package. So it works > > for all j2ee deployments. > > > > Is there a way to work around this ClassLoading problem heirarchy for > > binding GBeans through builder? > > > > Regards > > Krishnakumar > > > > > > On 6/28/06, David Jencks wrote: > >> > >> I think there is a simpler solution, or perhaps I don't understand > >> all the > >> details of what you are proposing. I think if you give your > >> binding gbeans > >> the magic classLoader attribute everything will work. This will > >> be set to > >> the configuration classloader for the configuration the gbean is > >> in, not the > >> configuration the gbeans class is loaded in. This classloader > >> should always > >> have the necessary classes in it. > >> > >> thanks > >> david jencks > >> > >> > >> On Jun 28, 2006, at 12:39 AM, Manu George wrote: > >> Hi, > >> The problem we are facing regarding adapters is because > >> the binding > >> gbeans were added to the naming module of geronimo. We are > >> planning to > >> change this by creating a separate module for global jndi and then > >> adding it > >> as a dependency in the configuration that is getting deployed. > >> This will be > >> done in the builders. All the reference creation logic can also > >> be moved to > >> the gbeans.The Binding GBeans will then have access to application > >> level > >> classes as they will be loaded in the app class loader. We hope this > >> approach will solve the current problem. We will post the code > >> again after > >> making these changes. > >> > >> Thanks > >> Manu > >> > >> On 6/28/06, Krishnakumar B wrote: > >> > Hi, > >> > > >> > We have created a JIRA > >> > (http://issues.apache.org/jira/browse/GERONIMO-2153 ) > >> and attached > >> > the initial draft. We have tried two approaches. > >> > > >> > * Adding to plan > >> > * Deploying from Builder. > >> > > >> > The EJBJNDIBindingGBean deploys from OpenEJBModuleBuilder and > >> has a tag > >> > in opene ejb plan. > >> > > >> > Resource Adapter and GBean have a gbean plan added to deployment > >> plan. > >> > > >> > >> > > >> class="org.apache.geronimo.connector.jndi.ConnectorJNDIBindingGBean"> > >> > >> name="configId">test/jms.rar/1.0/rar > >> > >> name="jndiName">globalJMSQueueFactory > >> > >> name="componentName">JMSQueueFactory > >> > >> name="j2eeType">JCAManagedConnectionFactory > >> > >> name="interfaceName">org.apache.geronimo.jms.connector.JMSQueueConnec > >> tionFactory > >> > > >> > > >> > and > >> > > >> > >> > > >> class="org.apache.geronimo.service.jndi.ServiceJNDIBindingGBean"> > >> > test/gbean/1.0/car > >> > globalTestGBean > >> > TestGBean > >> > GBean > >> > gbean.test.TestGBean > >> > > >> > > >> > We have a Classloading issue when trying to maintain all the > >> > BindingGbeans at one level. ( rmi-naming ). For GBeans and Resource > >> > Adapters that are not J2EE interfaces like javax.sql.DataSource / > >> > javax.jms.QueueConnectionFactory we get a ClassNotFound > >> as the class > >> > is not available at Classloader of rmi-naming. > >> > > >> > We spent a lot of time trying to solve this issue but are not > >> able to > >> > find a solution as the application level interface or class is not > >> > available. This problem will not occur for j2ee interfaces like > >> > DataSource, EJB interfaces, Queue, Topic etc.. > >> > > >> > If the approach is correct we would like to add the other > >> features to > >> > make this more suitable for adding into the product. > >> > > >> > Regards > >> > Krishnakumar B > >> > > >> > > >> > On 6/26/06, Jacek Laskowski wrote: > >> > > On 6/23/06, Krishnakumar B < www.bkk@gmail.com> wrote: > >> > > > >> > > > The plan needs to have some XML Tag to say this resource > >> needs to gets > >> > > > into Global JNDI and the builder can then add it to > >> geronimo: Context. > >> > > > This is not implemented yet. Currently if we deploy a > >> connector it > >> > > > gets in global jndi. > >> > > > >> > > I might've misunderstood it, but isn't Global JNDI == geronimo: > >> > > context == global: context? If so, why is this copying from > >> Global > >> > > JNDI to the geronimo: namespace? > >> > > > >> > > Looking forward to seeing your patch for it. Just as Guillaume > >> > > suggested, please create an JIRA issue and attach the patch to > >> it. > >> > > > >> > > > Krishnakumar B > >> > > > >> > > Jacek > >> > > > >> > > -- > >> > > Jacek Laskowski > >> > > http://www.laskowski.net.pl > >> > > > >> > > >> > >> > >> > >