[GLASSFISH-18564] Naming should use standard lookup names for injection Created: 27/Mar/12 Updated: 29/May/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
There is somewhere a disconnect between how naming works through proxies for lookup() of EJB TimerService or EJBContext (may be others) vs. falling back into v2-style code (ComponentEnvManagerImpl.EjbContextProxy) for injection of those types.
The error might be on the DOL registration, so if it is please reassign.
This is the callstack of the "wrong" sequence:
|Comment by Cheng Fang [ 14/Jun/12 ]|
When looking up these well-known resources by their portable jndi names (e.g., java:comp/EJBContext, java:comp/TimerService, etc), the result is retrieved from the preloaded list of named naming proxies.
When processing @Resource injections of these well-known resources, the reference name to look up is usually in the form java:comp/env/<full-class-name>/<field-name>, which follows a different path. I'll check if we can canonicalize the lookup name earlier.
|Comment by Tom Mueller [ 15/Feb/13 ]|
Reassigning to component lead as the assignee is no longer with the project.