This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes cache and pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "cache and pool" Watch "cache and pool" New topic

cache and pool

eswar kumar
Ranch Hand

Joined: Oct 20, 2002
Posts: 98
what is the difference betweeen caching and instance pooling ?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Caching = Storing data locally (in memory) to prevent recurring database queries when the data changes infrequently in the database.
Instance pooling = Re-using object instances to prevent the overhead of creating new objects for each incoming request.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: cache and pool
It's not a secret anymore!