Re: Specifying connection URL at runtime?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Feb 12 2008 - 19:38:14 EST

  • Next message: Eric Polino: "questions"

    On Feb 12, 2008, at 7:30 PM, Colin Bankier wrote:

    (1)

    >
    > I have subclassed DefaultConfiguration and DriverDataSourceFactory,
    > and
    > overridden DefaultConfiguration's getDataSourceFactory to return my
    > DriverDataSourceFactory subclass, and DriverDataSourceFactory's
    > getDataSource to return a new DriverDataSource object which I can
    > supply
    > some connection/driver values.

    (2)

    > I also had to, as Andrus suggested, set the DataSource Factory in the
    > modeller to my new class.

    Good to know it worked. As a nitpick, (1) and (2) are probably
    redundant. You can just do (2) with the same end result.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Feb 12 2008 - 19:38:45 EST