Re: DBCPDataSourceFactory Issue

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Dec 04 2009 - 17:01:16 EST

  • Next message: Dave Lamy: "Re: ParseException with EJBQL expression"

    I guess the easiest way is to write your own factory using Cayenne-
    provided one as a template.

    BTW, Cayenne implementation of DBCPDataSourceFactory is over-
    engineered. It overlooks a simple way to configure DBCP via
    org.apache.commons.dbcp.BasicDataSource. So the factory internally
    shouldn't look as scary as it does now, and hopefully we'll take
    advantage of that during 3.1 DI refactoring.

    Andrus

    On Dec 4, 2009, at 9:51 PM, Michael Gentry wrote:

    > I'm trying to use DBCPDataSourceFactory and load my data source
    > information from a location external to the project. I keep getting
    > errors that it can't find the file. Has anyone does this
    > successfully?
    >
    > Thanks!
    >
    > mrg
    >



    This archive was generated by hypermail 2.0.0 : Fri Dec 04 2009 - 17:02:32 EST