Did you see a factory attribute in any of the Tomcat doc for JDBC
DataSources?
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
tml

OK, Thanks for that - I've removed the Factory setting, placed everything where it is recommended, and yes, I did already have a web.xml entry for it - It's now opening up physical connections to the database, which is good... However, the following code still returns a null DataSource object...


Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); DataSource ds = (DataSource)envCtx.lookup("jdbc/myDB");

Any ideas on how to trace whats going on? There are still no exceptions being thrown.

Thanks.
Craig


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to