Thanks for your help.
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.
I also had to, as Andrus suggested, set the DataSource Factory in the
modeller to my new class.
This appears to be working a charm so far.
Cheers,
Colin Bankier,
Andrus Adamchik wrote:
>
> I guess the official way to customize how connections are made is via
> a user-provided DataSourceFactory [1]. The class name implementing
> factory interface can be entered in the Modeler for the DataNode in
> the "DataSource Factory" field. "getDataSource" method may return a
> lazy DataSource decorator that would pops up a dialog window on the
> first attempt to obtain a connection.
>
> On Feb 12, 2008, at 9:38 AM, Michael Gentry wrote:
>
>> http://cayenne.apache.org/doc/deployment.html
>>
>> And look at section 3 there, Customizing Configuration. That should
>> help. If not, let us know.
>
>
-- View this message in context: http://www.nabble.com/Specifying-connection-URL-at-runtime--tp15434080p15446640.html Sent from the Cayenne - User mailing list archive at Nabble.com.
This archive was generated by hypermail 2.0.0 : Tue Feb 12 2008 - 19:31:35 EST