This content has been marked as final.
Show 2 replies
-
1. Re: Problem with Embeddable EJB3
bill.burke Apr 12, 2006 3:50 PM (in response to mrhightech)yes, you are missing something, but not your fault...
EJBContext.lookup looks in the ENC of the EJB it is not a global JNDI lookup.
Have you bound the EJB within an ejb-ref? If not then you need to do a straight JNDI lookup of your EJB ref:
new InitialContext().lookup("BeanName/local"); -
2. Re: Problem with Embeddable EJB3
mrhightech Apr 13, 2006 3:55 PM (in response to mrhightech)Good! Indeed, using a new InitialContext() solves the problem.
This is apparently not the case in JBoss versus the embedded version. How is it different?
Thanks Bill.
Daniel