[jboss-user] [JNDI/Naming/Network] - Re: EJB3: @Resource name only EJBContext, not in InitialCont
wingtung.leung
do-not-reply at jboss.com
Thu Feb 14 11:06:38 EST 2008
"jaikiran" wrote :
| It depends on where you are doing the lookup using the InitialContext. Is this being done in the same bean where the @Resource is defined? In which case, this should work. However, if you are doing the lookup in some other component of your application, then this wont work.
|
The lookup using InitialContext is located inside the bean with the @Resource annotation. Exactly the same location as the lookup with SessionContext.
I also expect it to work, but it does not. :-(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129432#4129432
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129432
More information about the jboss-user
mailing list