1 Reply Latest reply on Jun 30, 2004 3:34 AM by snavjot

    one remote bean cant find another remote bean


      hi list,

      In my CustomerManagerBean, i am able to find local entity beans with JNDi names as "ejb/CustomerHome" and "ejb/CustomerLoginHome".

      Similarly, i am trying to access a bean with JNDI name "ejb/ProductManagerHome" from CartBean. Actually, the flow is like this

      web delegate -> CartHome -> CartBean -> ProductManagerHome

      NOTE - However, the same "ejb/ProductManagerHome" is found successfully from web tier if accessed directly. I mean if i keep mapping to ejb/ProductManagerHome in jboss-web.xml and look it up. it is found successfully.

      14:44:16,058 ERROR [ServiceLocator] Cant locate ejb/ProductManagerHome
      javax.naming.NameNotFoundException: ejb not bound

      but earlier in the log, when the beans were getting deployed, it gave a success message

      14:18:03,717 INFO [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=ejb/ProductManagerHome,plugin=pool,service=EJB
      14:18:03,717 INFO [StatelessSessionContainer] Started jboss.j2ee:jndiName=ejb/ProductManagerHome,service=EJB

      What could possibly be wrong?

      I am using ServiceLocator pattern to locate my beans.