Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 43776 invoked from network); 17 Jun 2008 18:22:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 18:22:07 -0000 Received: (qmail 10874 invoked by uid 500); 17 Jun 2008 18:22:09 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 10862 invoked by uid 500); 17 Jun 2008 18:22:09 -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 10851 invoked by uid 99); 17 Jun 2008 18:22:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 11:22:09 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of neil.pierson@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 18:21:15 +0000 Received: by fg-out-1718.google.com with SMTP id l26so3510473fgb.26 for ; Tue, 17 Jun 2008 11:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=kekGeYfFjGPKUvD3si3LHeN4LUa9U2dltiSrJm54REc=; b=MxX2bv9F/osziTEs4rOiCzt28Xrzn2XsCPj2TJ5F+lqFdUED8rLtarssipQy+ipxSw TYmsSkmr+t8ijBn+jIuc0E34Tg7hCbrX7FgcDVdlSO257Hisz+CRuFhvYFRmv85LDmN/ U+SahX1+8ui+XGcC6VPB6jpyzJKpoeFmsYjqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=rX8iC2mLwOCgIifKLMwXRZq0XJZjPQbjcr8QmZZma2sN3D2wxwhG485hBmG9Ds/Ig9 WC+yvPzdviX22BcKeK9ZULSe2EOP0Kvmiawm6+X+DYKCSkMVf77nK1NWsAO+GmuJ8Bn5 mirLQ1ML73ptJ/uSAO3u4Kg/UmxDY5kh7an3Y= Received: by 10.78.200.17 with SMTP id x17mr3261724huf.61.1213726892275; Tue, 17 Jun 2008 11:21:32 -0700 (PDT) Received: by 10.78.140.14 with HTTP; Tue, 17 Jun 2008 11:21:32 -0700 (PDT) Message-ID: Date: Tue, 17 Jun 2008 14:21:32 -0400 From: "Neil Pierson" To: user@cayenne.apache.org Subject: Re: Configuring SSL In-Reply-To: <08A76A0FD53A3B42ACC7E28512D4D4A8021325FA@angelone.internal.admin.cam.ac.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8017_13714890.1213726892248" References: <08A76A0FD53A3B42ACC7E28512D4D4A8021325EC@angelone.internal.admin.cam.ac.uk> <4B12F559-469B-4E94-9956-7D2379CC6082@pvv.ntnu.no> <08A76A0FD53A3B42ACC7E28512D4D4A8021325EF@angelone.internal.admin.cam.ac.uk> <3C1FCBB8-DA76-4304-89F4-E0BF9B7C2561@objectstyle.org> <08A76A0FD53A3B42ACC7E28512D4D4A8021325F4@angelone.internal.admin.cam.ac.uk> <46B01BB2-85C8-47D2-ADD6-DE6805FDF6F4@objectstyle.org> <8F798BFDA851B943B3A1B2510E9287850884BA7C@airmail.wirelessworld.airvananet.com> <08A76A0FD53A3B42ACC7E28512D4D4A8021325FA@angelone.internal.admin.cam.ac.uk> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8017_13714890.1213726892248 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The link wrapped to the next line. Cut and paste the pieces into your browser's address bar and it works. hth, n On Tue, Jun 17, 2008 at 4:31 AM, Elena Doyle wrote: > Scott, > > Thank you but I am afraid the link does not work. > > Elena > > -----Original Message----- > From: Scott Anderson [mailto:sanderson@airvana.com] > Sent: 16 June 2008 19:58 > To: user@cayenne.apache.org > Subject: RE: Configuring SSL > > I use a custom DSF for different reasons, but this might help anyways: > http://bnubot.googlecode.com/svn/trunk/BNUBot/src/net/bnubot/db/conf/Cay > enneConfiguration.java > > It's not as well documented as Andrus' example, but hopefully it's a little > more obvious what it's > doing. > > -----Original Message----- > From: Andrus Adamchik [mailto:andrus@objectstyle.org] > Sent: Monday, June 16, 2008 11:55 AM > To: user@cayenne.apache.org > Subject: Re: Configuring SSL > > Hi Elena, > > Here is a (badly written) factory for DBCP: > > https://svn.apache.org/repos/asf/cayenne/main/trunk/framework/cayenne-jd > k1.5-unpublished/src/main/java/org/apache/cayenne/conf/DBCPDataSourceFac > tory.java > > You can use a similar approach to properties loading, but then instead of > doing what we did with > DBCPDataSourceProperties/ DBCPDataSourceBuilder helper classes, do this: > > 1. Load a properties file (that will have to include the URL, user name, > password, and any of your > custom settings) to a java.util.Properties object. > 2. instantiate DBCP BasicDataSource, and call its set* methods to populate > the properties. > > Andrus > > On Jun 16, 2008, at 6:39 PM, Elena Doyle wrote: > > > Andrus, > > > > Many thanks for this. Due to bussiness needs I need to write a custom > > one. As I am mostly a database and PL/SQL person, is the source code > > of the standard Cayenne data factory available anywhere. I could not > > find it in the repository. > > > > Many thanks > > > > Elena > > ------=_Part_8017_13714890.1213726892248--