Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0
-
None
Description
EJBContainer openEjbContainer = EJBContainer.createEJBContainer();
openEjbContainer#webBeanContext
and
WebBeansContext().currentInstance()
return different instances of WebBeansContext.
This is pretty bad as you basically get 2 independent containers. Please note that WebBeansContext().currentInstance() is used in de-serialization and many other situations, like Context control, etc