Still need to write a connection pool class in J2EE 6 with MySQL 5?

I look around trying to figure out if anyone has asked this before. I do not think so.

Some of the other questions I've looked at seem to say a little about this, and point out that using a JNDI datasource setup in Tomcat is the best way to make database stuff in your J2EE application.

It has been three to four years since I started serious J2EE development. The arrival of .Net and ASP. I always thought I needed to write my own connection pool, that was silly. I want to know if you need to do all this.

+2


source to share


1 answer


No, there are publicly available libraries that implement pooling at different levels.



You might want to take a look at Apache DBCP, or just head to Google.

+1


source







All Articles