Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 38297 invoked from network); 2 Aug 2006 19:18:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 19:18:23 -0000 Received: (qmail 81113 invoked by uid 500); 2 Aug 2006 19:18:21 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 80897 invoked by uid 500); 2 Aug 2006 19:18:20 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 80879 invoked by uid 99); 2 Aug 2006 19:18:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 12:18:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.105.164.5] (HELO smtpmail2.sensis.com) (199.105.164.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 12:18:19 -0700 Received: from dimstar2.ats.sensis.com ([172.21.1.6]) by smtpmail2.sensis.com with esmtp (Exim 4.50) id 1G8ME9-0008Bt-Gz for user@geronimo.apache.org; Wed, 02 Aug 2006 15:17:57 -0400 Received: from corpatsmail1.ats.sensis.com ([172.21.1.88] helo=corpatsmail1.corp.sensis.com) by dimstar2.ats.sensis.com with esmtp (Exim 4.50) id 1G8MDh-0002Mz-Ne for user@geronimo.apache.org; Wed, 02 Aug 2006 15:17:29 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Gbean Deployment with JNDI Reference Date: Wed, 2 Aug 2006 15:17:29 -0400 Message-ID: <8C0E7CE89EF7C14B921F64810AA84BAB0B7889@corpatsmail1.corp.sensis.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Gbean Deployment with JNDI Reference Thread-Index: Aca2WjgHpfUrL9jRR3Sd6RaYT6l3sAADfhog From: "Sutton, Timothy" To: X-Sensis-MailScanner-Information: Scanned at Sensis Corporation by MailScanner X-Sensis-MailScanner: Found to be clean X-Sensis-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.399, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-Sensis-MailScanner-From: timothy.sutton@sensis.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Aaron, Do you think you could send me that code, and I will see if this will work for what I need. Thanks=20 Tim -----Original Message----- From: ammulder@gmail.com [mailto:ammulder@gmail.com] On Behalf Of Aaron Mulder Sent: Wednesday, August 02, 2006 1:35 PM To: user@geronimo.apache.org Subject: Re: Gbean Deployment with JNDI Reference On 8/2/06, Sutton, Timothy wrote: > I have written the app as a Spring Application and the only way we=20 > could think to deploy that is through a Gbean. The Spring application=20 > needs to run as a daemon service, and it needs to access JDBC through=20 > JNDI. Is there a better way to deploy a Spring App with these=20 > requirements? We are defintiely looking at ways to support improved Spring integration. For now, a daemon service is not going to be able to access JNDI. I could provide some code for you for a bean that implements DataSource and takes a property for the name of the Geronimo database pool to connect to, and when called, passes everything through to the Geronimo pool. Then you could just include that bean in your Spring configuration, and it would appear to the Spring application as if the Geronimo DataSource was right there in Spring. How does that sound? (I don't know what would need to be done to integrate it with a transaction manager, if that's a concern, but it would be a start.) Thanks, Aaron > -----Original Message----- > From: ammulder@gmail.com [mailto:ammulder@gmail.com] On Behalf Of=20 > Aaron Mulder > Sent: Wednesday, August 02, 2006 11:02 AM > To: user@geronimo.apache.org > Subject: Re: Gbean Deployment with JNDI Reference > > > On 8/2/06, Sutton, Timothy wrote: > > I am trying to deploy a Gbean with a reference to a JDBC data source > > via JNDI, and the Gbean can not see the resource name in JNDI.=20 > > Although if I do this in a JSP within the same war it works fine.=20 > > Does > > > anyone have an idea on how to resolve this problem. > > I don't think GBeans have access to the JNDI space (only J2EE=20 > components have JNDI). It might possibly work if a web app component=20 > calls the GBean, but I'm pretty sure it wouldn't if the GBean was=20 > called directly. > > Normally, a GBean has any necessary resources configured via=20 > references and dependency injection, though it's a little tricky in=20 > this case as the DataSource itself is not a GBean, only the=20 > "ManagedConnectionFactoryWrapperGBean" that you get the DataSource=20 > from. > > What are you trying to do? And what component will be calling the=20 > GBean? > > Thanks, > Aaron >