2 Replies Latest reply on Oct 9, 2002 9:43 AM by thinh

    ejb-jar.xml and jboss.xml PROBLEM

    ndtemporary

      i am having trouble with my jar configuration,
      basically in the ejb-jar.xml and jboss.xml, in particular
      the jndi configuration part of the bean.

      anybody out there have a working sample of both
      xml files? thanks! do they have to go together?
      please advise....

      thanks again

        • 1. Re: ejb-jar.xml and jboss.xml PROBLEM
          schaefera

          Get the template project (SF-JBoss download page) and checkout either the template, transaction or CMP 2.0 project.
          ATTENTION: for the template and transaction project you have to build it first because the DDs are generated by XDoclet.

          Andy

          • 2. Re: ejb-jar.xml and jboss.xml 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.