In the Modeler there is a dropdown for the DataNode called "DataSource Factory". Here you can specify your own class that implements "org.apache.cayenne.conf.DataSourceFactory" interface. Your own factory can implement 'getDataSource' method to pop up a dialog asking user to enter DB info on first call, or do whatever is appropriate in your case.

Cheers,
Andrus


On Apr 3, 2008, at 3:38 AM, Scott Anderson wrote:

Is there a way I can customize the driver/url/login information through
my application code? I want the user to be able to select the location
and login credentials, but the schema is known. I don't want the user to
have to write his or her own configuration files and repackage the
distributed jar, though.


Reply via email to