• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection and Object Pools in Java Application

 
James Winfrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

We have a core Java Application that uses JDBC to connect to Oracle database.

We have to pool objects and connections in that.

Shall we use JDBC Connection pooling or implement our own pool? I mean from performance

perspective?

How can we implement object pooling in java?

Any help is appreciable.

TIA


 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to JDBC
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd recommend allowing the application/web server manage the DB connection pool for you. If you really need to manage your own object pool then you can look at Apache's commons pool lib.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic