This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection and Object Pooling in Java  RSS feed

 
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
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James,

in my opinion it's hard to get caching or pooling correct so I would definitely try to use any existing solution. Although I'm not sure of the pooling integrated in most JDBC drivers is better than other solutions out there. Maybe it's a good idea to let the container care of the pooling for you.

Marco
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!