tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nabruphonic <stylopho...@gmx.de>
Subject RE: Tomcat: JNDI and Google Webtoolkit
Date Thu, 26 Jun 2008 07:44:45 GMT

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message