Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
M4
-
None
Description
The specification defines a JNDI lookup as the standard way to obtain the BeanManager for resources not managed by the CDI environment. Nevertheless it would be much easier to get the BeanManager directly from the ServletContext. This behavior is already implemented in Weld and possibly subject of a change request to the specification [1] .
I have attached a patch against the trunk that adds this functionality to OpenWebBeans.
[1] http://lists.jboss.org/pipermail/weld-dev/2010-March/002359.html