BTW, I would recommend to try a JNDI option first. That's where
WebObjects/EOF is different from J2EE - things like DataSources are
normally provided by container (vs. application), with container-
specific config replacing environment property files.
Andrus
On Sep 12, 2007, at 7:41 PM, Andrus Adamchik wrote:
> There is a variety of options for customization revolving around
> JNDI [1], and a custom DataSource that can be configured via a
> custom DataSourceFactory [2] in the Modeler.
>
> Cheers,
> Andrus
>
> [1] http://cayenne.apache.org/doc/using-jndi.html
> [2] http://cayenne.apache.org/doc/api/org/apache/cayenne/conf/
> DataSourceFactory.html
>
>
> On Sep 12, 2007, at 7:29 PM, Dan Morgan wrote:
>
>> Is there a way to modify the JDBC connection information
>> programmatically
>> prior to Cayenne attempting to make a connection? With EOF you
>> could get at
>> the connection information and make changes to it prior to
>> connection. This
>> allowed having property files that contained the connection
>> information and
>> yet not have to make changes to the driver nodes (Allowed copying
>> the same
>> jar file to several different configurations (staging, production,
>> etc) and
>> just having different property files there which could be used to
>> modify the
>> connection information at runtime).
>>
>> Thanks,
>>
>>
>> Daniel L. Morgan
>> EMail : <dmorga..homefinder.com>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
This archive was generated by hypermail 2.0.0 : Wed Sep 12 2007 - 12:48:08 EDT