aspose file tools*
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: 8968
    
    9

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


[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: connection pooling