[
https://jira.jboss.org/browse/JBAS-8424?page=com.atlassian.jira.plugin.sy...
]
David Allen commented on JBAS-8424:
-----------------------------------
I am confused by these additional comments about a WeakHashMap. This issue is specific
for a problem in RestEasy regarding the design around the
ThreadLocalResteasyProviderFactory which results in a hard reference to a BeanManagerImpl
from Weld. It is not a WeakHashMap leak of any sort, but due to a lack of cleanup code to
remove the thread local hard reference maintained for each deployment in JBoss AS.
If there is some other code causing an issue regarding a WeakHashMap or weak references,
can we file another JIRA issue for that one and copy the comments here to it?
RestEasy deployer won't release Weld BeanManager on undeploy
------------------------------------------------------------
Key: JBAS-8424
URL:
https://jira.jboss.org/browse/JBAS-8424
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Deployers
Affects Versions: 6.0.0.CR1
Environment: JBoss AS 6.0.0-SNAPSHOT, Linux 64 bit
Reporter: David Allen
Assignee: Bill Burke
Priority: Blocker
Fix For: 6.0.0.CR1
ThreadLocalResteasyProviderFactory in RestEasy has a reference to a CdiInjectorFactory
that is not released when the application is undeployed from JBoss AS. This
CdiInjectorFactory holds a reference to a BeanManager from Weld, and thus leaks all the
beans from the deployment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira