• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection pool

 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the past, I used to make use of connection pool when connecting to MySQL using Servlet; now, I will connect Oracle via Servlet, I wonder if I still need to make a connecting pool in Servlet? Or Oracle already have this kind of function so that I don't need to take care of this when programming? Thanks
 
Ray Stojonic
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's my understanding that a DataSource is the preferred way to connect to a database from Servlets. It will do it's own pooling, so you don't have to worry about it.

How to Setup (and use) a DataSource on Tomcat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic