the java spec says that a java class is unloaded by the vm if its classloader is subject to garbage collection. I use UnifiedClassLoaderRepository3 in my application to achieve scoped class loading per deployed ear file.
It seems that if I undeploy an existing application, its classes get never unloaded by the VM. This is a problem if I use static caches and singletons.
How does class unloading work with scoped class loader repository ?