While DataNode stores 'dataSourceFactory' name for historical reasons, it never actually uses it. So you have to create and set a DataSource instance on your own. "org.objectstyle.cayenne.conn.PoolManager" is a convenience implementation that you can use.

Andrus


On May 16, 2006, at 10:44 PM, Watkins, Garry wrote:

Andrus,

I have successfully gotten the EOModel to load from within WebObjects,
however, I am having a difficult time figuring out how to associate a data
source with the DataNode.

I am able to get all of the information from the eomodel to set up a
DataSourceInformation object. If it is a standard JDBC connection, how do I get Cayenne to use the DSI at run time to generate a connection? I guess a better question is, shouldn't the DataNode.getDataSource() method use the dataSourceFactory and the DSI to create a dataSource at run time if the
dataSource is null?

Any guidance that you can give me would be appreciated.

Thanks
Garry

Reply via email to