0 Replies Latest reply on Dec 9, 2002 9:23 AM by Horatiu Stanciu

    depoy multiple EJB in an ear

    Horatiu Stanciu Newbie

      Hi!
      I have to deploy multiple EJB in an ear archive.

      My structure is the following:

      META-INF/application.xml
      dir1/dir2/dir3/comp1/*.class
      dir1/dir2/dir3/comp1/META-INF/
      dir1/dir2/dir3/comp1/META-INF/ejb-jar.xml, jboss.xml
      dir1/dir2/dir3/comp2/*.class
      dir1/dir2/dir3/comp2/META-INF/
      dir1/dir2/dir3/comp2/META-INF/ejb-jar.xml, jboss.xml
      dir1/dir2/dir3/comp3/*.class
      dir1/dir2/dir3/comp3/META-INF/
      dir1/dir2/dir3/comp3/META-INF/ejb-jar.xml, jboss.xml
      dir1/dir2/dir3/comp4/*.class
      dir1/dir2/dir3/comp4/META-INF/
      dir1/dir2/dir3/comp4/META-INF/ejb-jar.xml, jboss.xml

      I don't know if it is correct to put the META-INF directories under the comp directories since in JBoss documentation it is written that the structure must be:

      output/chap2/chap2-ex3.ear
      +- META-INF/MANIFEST.MF
      +- META-INF/jboss-app.xml
      +- chap2-ex3.jar (archive) [EJB jar]
      | +- META-INF/MANIFEST.MF
      | +- META-INF/ejb-jar.xml
      | +- org/jboss/chap2/ex3/EchoBean.class
      | +- org/jboss/chap2/ex3/EchoLocal.class
      | +- org/jboss/chap2/ex3/EchoLocalHome.class
      +- chap2-ex3.sar (archive) [MBean sar]
      | +- META-INF/MANIFEST.MF
      | +- META-INF/jboss-service.xml
      | +- org/jboss/chap2/ex3/EjbMBeanAdaptor.class
      +- META-INF/application.xml


      Thanks!
      H