This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 8713
    
    6

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
Driver Loading
pooling in tomcat 6.x
Questions on EJB
Connection Pooling
servlet destroy method and session