> > From: Timothy Bennett <[EMAIL PROTECTED]> > Date: 2003/12/12 Fri AM 11:09:03 EST > To: [EMAIL PROTECTED] > Subject: Re: When use ServiceManager.release(obj)? > > Stephen McConnell wrote: > > > > My personal opinion - never - I'm basically of the opinion that a > > container should not pool components - instead if want pooled components > > then declare a service specific pool and handle this explicitly. But > > others may disagree with this conclusion. > > > > The Sun GC guys highly discourage the use of pooling due to alot of > improvements and optimizations in the JDK1.4+ garbage collector. The > JDK1.5 GC will even smarter and self-tuning. The only exception to the > "do-not-pool" recommendation is when you have objects that are very > expensive to create, such as database connections.
Let me add to that list Tim, some objects like a direct memory buffers (also expensive to create) that have their backing stores outside of the Java heap should also be pooled. Alex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
