Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 5334 invoked from network); 8 Mar 2006 07:14:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Mar 2006 07:14:54 -0000 Received: (qmail 15629 invoked by uid 500); 8 Mar 2006 07:14:52 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 15562 invoked by uid 500); 8 Mar 2006 07:14:52 -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 15551 invoked by uid 99); 8 Mar 2006 07:14:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Mar 2006 23:14:52 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of manu.t.george@gmail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO zproxy.gmail.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Mar 2006 23:14:51 -0800 Received: by zproxy.gmail.com with SMTP id v1so123162nzb for ; Tue, 07 Mar 2006 23:14:30 -0800 (PST) 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:references; b=qTG33Ikwq82Ke1rorHNaJ2ZiJEIxYnkpVBa/9HS8JC1UEN/wL4Vy+5JkzFET8lle+nt7qkm/B3UkCKUJO5QavY9WlgogtN3DFS03f+vMIc1soxgXNUDy1aBXg7k/+E/SEWmAralmh54Uddqxlnk5iJlpRwpP/g29ZL3u6sCR64E= Received: by 10.65.156.19 with SMTP id i19mr211673qbo; Tue, 07 Mar 2006 23:14:30 -0800 (PST) Received: by 10.65.185.12 with HTTP; Tue, 7 Mar 2006 23:14:30 -0800 (PST) Message-ID: <466797bd0603072314l22d076eco764aa6678d4fa714@mail.gmail.com> Date: Wed, 8 Mar 2006 12:44:30 +0530 From: "Manu George" To: dev@geronimo.apache.org Subject: Re: getting the datasource ref in a gbean In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3722_33190801.1141802070546" References: <466797bd0603060822m2ecda89bobb8e002fe1e37ab3@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3722_33190801.1141802070546 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi , I have a final object (SessionFactory of hibernate) that I need in the JNDI context of an application. Since Geronimo does not have a global JNDI Context I am planning to write a GBean to initialize the Session factory and then in the application provide the gbean-ref. Does this featur= e work as of now? If I have a $getResource() in my gbean and return the session factory will I get the session factory in the JNDI context of the application. Is this the correct approach? What i want is a sessionfactory bound to the JNDIContext of the application using Hibernate. Regards Manu ------=_Part_3722_33190801.1141802070546 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi ,

       I have a final object (SessionFactory of hibernate)  that I need in the JNDI context of an application. Since Geronimo does not have a global JNDI Context I am planning to write a GBean to initialize the Session factory and then in the application provide the gbean-ref. Does this feature work as of now? If I have a $getResource() in my gbean and return the session factory will I get the session factory in the JNDI context of the application.  Is this the correct approach? What i want is a sessionfactory bound to the JNDIContext of the application using Hibernate.

Regards
Manu




------=_Part_3722_33190801.1141802070546--