• Post Reply Bookmark Topic Watch Topic
  • New Topic

where to use c3p0 jar  RSS feed

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a web application ami need to use c3p0
or is it useful only when there are lot of transactions in application,say a enterprise application?

thanks
 
Christian Dillinger
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Connection pooling is useful in nearly every situation.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a web application it is probably deployed in a Servlet Container, which will provide its own connection pool. I'd favour that over c3p0 if it is there, simple because it is one less thing to need to configure.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!