Code: Select all
(ManagerLocal)sessionContext.lookup("com.enthu.ejbplus.TellerBean/manager");
Moderator: admin
Code: Select all
(ManagerLocal)sessionContext.lookup("com.enthu.ejbplus.TellerBean/manager");
But the code shows a bean named com.enthu.ejbplus.TellerBean!admin wrote:The code for that bean is not relevant and is not shown in this question.
Code: Select all
ManagerLocal manager = (ManagerLocal) ctx.lookup("java:comp/env/com.enthu.ejbplus.TellerBean/manager")
I think it should better be:you must use the full name i.e. java:comp/env/com.enthu.ejbplus.TellerBean/manager and for EJBContext you must use the relative name i.e. com.enthu.ejbplus.TellerBean/manager
Users browsing this forum: No registered users and 4 guests