2 Replies Latest reply on May 15, 2008 2:03 AM by martywalters

    binding the TodoDao stateless session bean in jsfejb3

    jcurious

      in the jsfejb3 example in the getting started guide, the client class TodoBean.java has the following lines.

      InitialContext ctx = new InitialContext();
      return (TodoDaoInt) ctx.lookup("jsfejb3/TodoDao/local");

      However none of the configuration files specity this binding in JNDI. Does anyone know how to bind this name in the JNDI java:comp context.

      Thank you

        • 1. Re: binding the TodoDao stateless session bean in jsfejb3
          jaikiran

          I personally haven't used jsfejb3 example.


          return (TodoDaoInt) ctx.lookup("jsfejb3/TodoDao/local");

          However none of the configuration files specity this binding in JNDI


          Going by the pattern of the jndi-name (EARNAME/BEANNAME/local), it looks to be the default jndi-name that gets assigned by JBoss.


          Does anyone know how to bind this name in the JNDI java:comp context.


          The java:comp is per component. Each component like web component or EJB component have their own java:comp/env namespace. Where does the client class (TodoBean.java) belong? Is it part of the web component?


          • 2. Re: binding the TodoDao stateless session bean in jsfejb3

            I can't get the build.xml to work. the instructions say to change the
            jboss-dist to the install location but there isn't any jboss-dist values.
            can you post your build.xml so i can see how to correct. thanks