Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 61286 invoked from network); 16 Jun 2008 18:58:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2008 18:58:40 -0000 Received: (qmail 79704 invoked by uid 500); 16 Jun 2008 18:58:42 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 79690 invoked by uid 500); 16 Jun 2008 18:58:42 -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 79679 invoked by uid 99); 16 Jun 2008 18:58:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 11:58:42 -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: local policy) Received: from [12.6.244.135] (HELO airmail.wirelessworld.airvananet.com) (12.6.244.135) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 18:57:51 +0000 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: Configuring SSL Date: Mon, 16 Jun 2008 14:57:37 -0400 Message-ID: <8F798BFDA851B943B3A1B2510E9287850884BA7C@airmail.wirelessworld.airvananet.com> In-Reply-To: <46B01BB2-85C8-47D2-ADD6-DE6805FDF6F4@objectstyle.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Configuring SSL Thread-Index: AcjPyXrS4lD+bMsYQwy0thHUn6v0CgAGQLEg 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> From: "Scott Anderson" To: X-Virus-Checked: Checked by ClamAV on apache.org 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]=20 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 =20 of doing what we did with DBCPDataSourceProperties/ =20 DBCPDataSourceBuilder helper classes, do this: 1. Load a properties file (that will have to include the URL, user =20 name, password, and any of your custom settings) to a =20 java.util.Properties object. 2. instantiate DBCP BasicDataSource, and call its set* methods to =20 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 =20 > custom one. As I am mostly a database > and PL/SQL person, is the source code of the standard Cayenne data =20 > factory available anywhere. I > could not find it in the repository. > > Many thanks > > Elena