0 Replies Latest reply on Aug 31, 2006 11:54 AM by Denis Peyrusaubes

    EJB Jndi lookup name

    Denis Peyrusaubes Newbie

      Extracted from last version of EJB3 spec (chapter 3.6.1):

      For example, an EJB 3.0 client, com.acme.example.MySessionBean, might obtain a reference
      to a bean?s home interface as follows:
      @EJB CartHome cartHome;
      This home interface could be looked up in JNDI using the EJBContext lookup method as shown in the
      following code segment:
      @Resource SessionContext ctx;
      ...
      CartHome cartHome =
      (CartHome)ctx.lookup(?com.acme.example.MySessionBean/cartHome?);


      I can understand why the client class name must be set in the jndi name.....