I'm getting the following class loader leak from PCRegistry.

java.net.URLClassLoader
 <loader> of  org.apache.openejb.test.entity.cmp.ContextLookupCmpBean
   pcSuper of  org.apache.openjpa.enhance.PCRegistry$Meta
hard of org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashMap $WeakEntry [15] of org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashMap $Entry[47] table of org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashMap
           _metas of  org.apache.openjpa.enhance.PCRegistry

I noticed that PCRegistry does have a deRegister(classloader) method, which I assume would release the resources, but I'm curious why the resources aren't automatically released when I call EMF.close().

Is there anyway, we can have PCRegistry automatically release the class references, so I don't have to call an OpenJPA specific api?

Thanks,

-dain

Reply via email to