Re: connection to db with pooling in Struts

2008-11-30 Thread Adam Ruggles
You can use this little snippet to get a connection: public Connection getConnection(String url, String driverClassName, String username, String password) throws SQLException { try { Class.forName(driverClassName); } catch

Re: connection to db with pooling in Struts

2008-11-30 Thread Nils-Helge Garli Hegvik
That won't use the pool. Take a look at some of the code snippets at [1] Nils-H [1] - http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html On Mon, Dec 1, 2008 at 8:09 AM, Adam Ruggles [EMAIL PROTECTED] wrote: You can use this little snippet to get a connection: