Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

How to enable JDBC/MySqlConnectorj connection pooling?

0

48 views

I am still newbish to java envelopment as I am mainly a C# developer. I'd like to know how to use or enable connection pooling when I do SQL request from my Java servlet.

In C# using the MySql connector it's super simple as it is only a parameter or two to add in the connection string:

Pooling=true; Connection Lifetime=1200;

But how does that work in Java? Is it enabled by default?

I am using the "com.mysql.jdbc.Driver" driver.

Thanks!

asked June 22, 2011 8:18 pm CDT
posted via StackOverflow

1 Answer

0
 

Use a connection pool such as c3p0

answered June 22, 2011 8:28 pm CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
JDBC SQL Connection
March 1, 2011