wood burning stoves 2.0*
The moose likes JDBC and the fly likes connection pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connection pooling" Watch "connection pooling" New topic
Author

connection pooling

Rohitash sharma
Greenhorn

Joined: Dec 03, 2008
Posts: 19
Can anyone Explain step by step how to use connection pooling.
Rajesh Kumar Raj
Greenhorn

Joined: Sep 03, 2007
Posts: 11

Hi,

Can you please tell me in which application server you want to create connection pool?
Rohitash sharma
Greenhorn

Joined: Dec 03, 2008
Posts: 19
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/dtoregistrationform", "root", "cdn123");
Rohitash sharma
Greenhorn

Joined: Dec 03, 2008
Posts: 19
Tomcat 6.0.16
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

For step-by-step instructions, have a look at the Tomcat Documentation: JNDI Resources (scroll down to "JDBC Data Sources").
There are examples for specific databases in the Datasource How-To


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection pooling
 
Similar Threads
Connection Pooling
Questions on EJB
pooling in tomcat 6.x
servlet destroy method and session
Driver Loading