• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection pooling

 
Rohitash sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone Explain step by step how to use connection pooling.
 
Rajesh Kumar Raj
Greenhorn
Posts: 11
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you please tell me in which application server you want to create connection pool?
 
Rohitash sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/dtoregistrationform", "root", "cdn123");
 
Rohitash sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 6.0.16
 
Joe Ess
Bartender
Posts: 9297
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic