Hi,
How can I lookup an EJB3 stateless session bean in the Web tier inside a POJO class without using injection?
The following code fails:
UserManager userManager = (UserManager) ctx.lookup("java:comp/env/BeanName");
where BeanName is the name assigned to the session bean via the @Stateless annotation.
Also this doesn't work:
UserManager userManager = (UserManager) ctx.lookup(UserManager.class.getName());
Thanks in advance,
Behrang
[Message sent by forum member 'behrangsa' (behrangsa)]
http://forums.java.net/jive/thread.jspa?messageID=273462