2 Replies Latest reply on Oct 10, 2002 8:09 AM by thinh

    jndi name problem

    thinh

      i have 2 deployment descriptor in mein jar file like following:
      0 10-09-02 13:36 META-INF/
      837 10-09-02 13:36 META-INF/ejb-jar.xml
      613 10-09-02 13:36 META-INF/jboss.xml
      788 10-09-02 12:01 META-INF/weblogic-ejb-jar.xml
      193 10-07-02 15:29 com/netlife/examples/ejb/Simple.class
      292 10-07-02 15:29 com/netlife/examples/ejb/SimpleHome.class
      249 10-07-02 15:29 com/netlife/examples/ejb/SimpleInterface.class
      939 10-08-02 11:16 com/netlife/examples/ejb/SimpleBean.class

      in my jboss.xml file i specified the jndi-name of my bean
      <jndi-name>com.netlife.examples.ejb.SimpleHome</jndi-name>

      but after the bean is deployed, i can't look up this bean under the specified jndi-name, but this name:
      <ejb-name>com.netlife.examples.ejb.SimpleHome</ejb-name>

      any body know where the problem is.

      Thank you.

        • 1. Re: jndi name problem
          prabhakar

          Aren't both names same ???

          -prabhakar

          • 2. Re: jndi name problem
            thinh

            oh, no i meant i specified the jndi-name like com.netlife.examples.ejb.SimpleHome in the jboss.xml and ejb-name like com.netlife.examples.ejb.SimpleBean in the ejb-jar.xml.
            i can't look up this bean under the jndi-name but the server can find it under the ejb-name.
            i had a look into the server.log and found some errors that i can't solve.

            DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: com.netlife.examples.ejb.SimpleBean
            2002-10-10 13:08:19,099 DEBUG [org.jboss.ejb.plugins.local.BaseLocalContainerInvoker] com.netlife.examples.ejb.SimpleBean cannot be Bound,
            doesn't have local and local home interfaces

            thank you for your help in advance