4 Replies Latest reply on Dec 15, 2002 10:07 AM by cti_java

    Local Inerfaces

    Rajeev Chitamoor Newbie


      I am having problem looking up Beans through local interfaces in JBoss 3.0. What is the JNDI prefix for the
      local interfaces ?.

      Suppose I have a bean called “MyBean” and the corresponding ejb-jar.xml looks like

      <enterprise-beans>

      <!— I have left out some of the entries -->
      <ejb-name>My Bean</ejb-name>
      <local-home>LocaMyBeanHome</local-home>
      LocaMyBean
      <ejb-class>mypackage.MyBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      <enterprise-beans>

      When I try to look up "MyBean" using

      new InitialContext().lookup("LocalMyBean");

      I get a "MyBean not bound" exception (NamingException).

      Do I need to tweak the jboss.xml (or any other files) to get local interfaces working ?.