The context of org.jboss.weld.context.ejb.EjbRequestContext is not destroyed after calling the destroy() method.

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.4

Issue

  • The context of org.jboss.weld.context.ejb.EjbRequestContext is not destroyed after calling the destroy() method.

Resolution

The issue still exist in EAP 6.4.5.

Root Cause

This problem is caused by Content from issues.jboss.org is not included.WELD-1542. The destroy method gets called but the context is not removed due to an exception thrown at container level. Not only the contextual instance is not destroyed properly, but also thread local variables used to store the context state (active, valid and bean instance cache) are not cleaned up.

Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.