What changes need to be made in existing code to use connection pooling  
guest Thu Jun 12 05:48:14 BST 2008
 
Hi,

Anyone can tell me that what kind of changes need to be made in existing code to use connection pool?

I have modified the server.xml file of tomcat 5.5 as per the instruction given in the documentation section.

Your early reply in this regard would be highly appreciated.
 
sedj Fri Jun 13 15:43:27 BST 2008
 
Hi, Using the javax.naming and javax.sql packages :

Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/myPoolName");
Connection c = ds.getConnection();

The rest functions as you would normally.
guest Sun Aug 31 18:16:59 BST 2008
 
guest Sat Jun 05 03:45:35 BST 2010
 
H8A6nd suzwusglwjkz, [url=http://gfkvgiupmmkp.com/]gfkvgiupmmkp[/url], [link=http://fzvnjmfchtgq.com/]fzvnjmfchtgq[/link], http://frsdhtniyawq.com/
guest Sat Jun 05 03:45:37 BST 2010
 
H8A6nd suzwusglwjkz, [url=http://gfkvgiupmmkp.com/]gfkvgiupmmkp[/url], [link=http://fzvnjmfchtgq.com/]fzvnjmfchtgq[/link], http://frsdhtniyawq.com/