RE: Configuring SSL

From: Elena Doyle (ed28..dmin.cam.ac.uk)
Date: Mon Jun 16 2008 - 11:59:27 EDT

  • Next message: Elena Doyle: "RE: Configuring SSL"

    Thank you very much for this.

    Best wishes

    Elena

    -----Original Message-----
    From: Andrus Adamchik [mailto:andru..bjectstyle.org]
    Sent: 16 June 2008 16:55
    To: use..ayenne.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-jdk1.5-unpublished/src/main/ja
    va/org/apache/cayenne/conf/DBCPDataSourceFactory.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



    This archive was generated by hypermail 2.0.0 : Mon Jun 16 2008 - 12:03:12 EDT