Hi,

I moved the driver to the common-directory. Unfortunately it still does not
work. In my Java-Code, do I have to write only the following code to connect
with the connection pool?
Code:

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/eco_test");

cn = ds.getConnection();




Caldarale, Charles R wrote:
> 
> What happens if you put the mysql jar into common/lib as the documentation
> says to?
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html#MySQL%20DBCP%20Example
> 
> Make sure you remove the jar from server/lib - you don't want it in two
> places.
> 
>  - Chuck
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat%3A-JNDI-and-Google-Webtoolkit-tp18114801p18128251.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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