[jboss-user] [JNDI/Naming/Network] - Re: EJB3: @Resource name only EJBContext, not in InitialCont

jaikiran do-not-reply at jboss.com
Thu Feb 14 08:37:19 EST 2008

anonymous wrote : new InitialContext().lookup("java:comp/env/jms/vpoToEmotiveQueue");

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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129392#4129392

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129392

More information about the jboss-user mailing list