<class-loading>
<loader-repository>
myapp.com:loader=myapp.war
</loader-repository>
</class-loading>
Originally posted by Mr. C Lamont Gilbert:
A SoftReference cleans itself. Thats its whole purpose. There is a whole package 'java.lang.ref' for this type of stuff. Yet you use JMX. Its the proverbial axe to swat a fly from a friends forehead.
A soft reference will clean up its referrent when memory gets low, automatically. You do need to manage cleaning up the soft reference itself.
Also I think i mentioned that GC is tuneable and in turn it makes your cache tuneable.
[ June 10, 2006: Message edited by: Mr. C Lamont Gilbert ]