Skip to Content
0
Former Member
Dec 11, 2008 at 08:17 AM

EJB lookup NamingException

9 Views

I have EJB project with SessionBean and CMP Entity Bean.

And I have WebDynPro project from witch I'am trying to access CMP Bean throw Session bean.

And I have a problem:

When I try access ti entity bean from session bean:

entityBeanLocalHome = (EntityBeanLocalHome) ctx.lookup("sap.com/EJB/EntityBean");

I have NamingException.

In VisualAdmin I can find this bean. and expression:

sessionBeanLocalHome = (SessionBeanLocalHome) ctx.lookup("sap.com/EJB/SessionBean");

work.

What's wrong?

please help!