Posted By:
Cyber_Girl
Posted On:
Monday, July 8, 2002 09:45 AM
Ok, I'm using Tomcat 4.0.3, and am trying to access a JDBC datasource via JNDI. For some reason, DataSource is OK when I'm using StandAlone Tomcat, but for using Tomcat-Apache, my DataSource is NULL. I used the following code to print out my binding Context: NamingEnumeration enum = envCtx.list("jdbc/"); while (enum.hasMore()) System.out.println(" --> "+enum.next()); My out put is: --> Mydatabase: org.apache.naming.ResourceRef Which means that JNDI is working and the resource is available; why then is DataSource coming back as null? Please help!!
More>>
Ok, I'm using Tomcat 4.0.3, and am trying to access a JDBC datasource via JNDI. For some reason, DataSource is OK when I'm using StandAlone Tomcat, but for using Tomcat-Apache, my DataSource is NULL.
I used the following code to print out my binding Context:
NamingEnumeration enum = envCtx.list("jdbc/");
while (enum.hasMore())
System.out.println(" --> "+enum.next());
My out put is:
--> Mydatabase: org.apache.naming.ResourceRef
Which means that JNDI is working and the resource is available; why then is DataSource coming back as null?
Please help!!
<<Less