Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 55642 invoked from network); 23 Aug 2007 18:49:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 18:49:58 -0000 Received: (qmail 84846 invoked by uid 500); 23 Aug 2007 18:49:54 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 84834 invoked by uid 500); 23 Aug 2007 18:49:54 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 84825 invoked by uid 99); 23 Aug 2007 18:49:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 11:49:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mkienenb@gmail.com designates 64.233.162.227 as permitted sender) Received: from [64.233.162.227] (HELO nz-out-0506.google.com) (64.233.162.227) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 18:49:52 +0000 Received: by nz-out-0506.google.com with SMTP id f1so1340338nzc for ; Thu, 23 Aug 2007 11:49:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gSwFlOhxWoG6WsF0lnc+EFb0JQAljk4tTsQUgtmQhOp+9MFa7e8+yIM4DDQRtQGew6PeWil7axhiCSKTQ8qSxqpX4fC/NKq/0NO1CHpnxdVBkm+pMC9uEb35ezvAsy0FuynicHxouAVstffPZwTS4fN6GTej1E5aENoJS3o8GwM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OR91Ot+KDTA6Naw8FI9KYu6rfZqvUi12otrpD/mcqlhbu6a+TCYx677MhlHe60Fc8udboHbyBiW5+HWDRbvfAS2YkCzxhNuhpK0LlVJ8f5cvTfXwzXm2KYrSmDzyKk5W3VHBNlvQjTvdM4oDxuq6yq84AnAWC1AjTWhMrMiEj+w= Received: by 10.114.151.13 with SMTP id y13mr1583748wad.1187894970415; Thu, 23 Aug 2007 11:49:30 -0700 (PDT) Received: by 10.114.125.10 with HTTP; Thu, 23 Aug 2007 11:49:25 -0700 (PDT) Message-ID: <8f985b960708231149t6b5465cbva0634de40dcec268@mail.gmail.com> Date: Thu, 23 Aug 2007 14:49:25 -0400 From: "Mike Kienenberger" To: user@cayenne.apache.org Subject: Re: Configuring JettyPlus JNDI for Cayenne In-Reply-To: <3CDEE737-ABAC-4860-915A-61F0B66F01A0@objectstyle.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8f985b960708231121n2881c409r5f770e85d27ab694@mail.gmail.com> <4FE5D5A9-8BDE-42C8-BC18-23D707D3BF7B@objectstyle.org> <8f985b960708231139u6a9f78d4y40e46596aa23c566@mail.gmail.com> <3CDEE737-ABAC-4860-915A-61F0B66F01A0@objectstyle.org> X-Virus-Checked: Checked by ClamAV on apache.org Yes, I was considering whether I should look at commons dbcp and see what was there. Thanks! On 8/23/07, Andrus Adamchik wrote: > BTW, for the XXX.XXX you may try > org.apache.commons.dbcp.BasicDataSource. It is a fairly simple to use > bean-property-based DataSource: > > http://commons.apache.org/dbcp/api-1.2.2/org/apache/commons/dbcp/ > BasicDataSource.html > > (I wish we used it for our own DBCP DS wrapper that is insanely > complex now, using raw DBCP API). > > Andrus > > On Aug 23, 2007, at 9:39 PM, Mike Kienenberger wrote: > > > Yes, I've used the modeler jndi for some of my projects and that works > > reasonably well if it's just for me. > > > > However, I've got some web page designers trying to run web apps on > > eclipse using jndi, and I was hoping for something that could be > > configured to run out of the box for them just by checking out the > > app-server-ready cvs code and pointing to that config file in the > > jettylauncher setttings. > > > > Having them go in and manually set the data sources from the modeler > > is asking too much. > > For Tomcat, it was simply a matter of defining the data source in the > > config file, but jetty-plus seems to be making everything much more > > complicated in the name of "flexibility", so much so that nothing > > seems to work out of the box. > > > > On 8/23/07, Andrus Adamchik wrote: > >> I use CayenneModeler JNDI hack for local work with JettyLauncher. > >> > >> In production I use Jetty 6 that has a bit different configuration > >> (and of course Jetty 6 is not compatible with JettyLauncher). Just in > >> case here is an example of Jetty 6 (also requires Cayenne 3.0... so I > >> guess that's not helpful at all): > >> > >> > >> > >> >> default="." />etc/ > >> dbcp.properties > >> > >> > >> > >> >> class="org.mortbay.jetty.plus.naming.Resource"> > >> jdbc/myDS > >> > >> > >> > >> > >> > >> > >> Andrus > >> > >> > >> > >> > >> On Aug 23, 2007, at 9:21 PM, Mike Kienenberger wrote: > >> > >>> Has anyone successfully configured jetty to use a jndi connection > >>> with Cayenne? > >>> > >>> Specifically, I'm trying to create a config file for > >>> jettylauncher in > >>> eclipse for Jetty 5.1.x > >>> > >>> My apparent problem is that I can't figure out what goes in the > >>> place > >>> of XXX.XXXX.XXXXX > >>> > >>> > >>> > >>> > >>> > >>> > >>> jdbc/CachedDS > >>> > >>> > >>> >>> name="DriverName">oracle.jdbc.driver.OracleDriver > >>> jdbc:oracle:thin:@abc.xyz.com: > >>> 1521:abc > >>> user > >>> password > >>> > >> > >> > > > >