Accessing JNDI data sources...

Ric Turley <[email protected]> Thu, 02 Sep 2004 10:30:17 -0600
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <BD5CA6B9.51F0D%[email protected]>
How do I configure an EOModel to use a Tomcat JNDI data source?

I am updating a web application to use EOF.  The original database
controller class uses javax.sql.DataSources.  I first used a model with a
JDBCAdaptor; although I can access model data from EOModeler and by running
the controller class external to Tomcat, when running from the servlet
container, the first JDBCChannel.openChannel() call returns the error "Found
multiple data sources. Please map the EOModels to a data source explicitly!"
It appears the JDBCAdaptor uses javax.naming and any data source in the
java:comp/env/jdbc/ namespace will cause the error.

On the other hand, I have not found a successful JNDI configuration in
EOModeler.  Any experience, knowledge, advice or resources to help in
configuring EOF to run in Tomcat would be greatly appreciated.

Thanks, 
Ric Turley
Zarac Software
Custom Software Development
http://www.zarac.com
Office: (303) 642-3106