1 Reply Latest reply on Nov 30, 2004 9:20 AM by Kamal Govindraj

    tips: external JAR references from ejb-app-JAR

    Roberto Colmegna Newbie

      Suppose that you want build the EJB-APP "MYAPP.EAR"
      packed in MYAPP.jar which needs MYLIB.jar.

      To obtain a functional EAR you must build this
      structure:

      MYAPP.EAR
      |
      |-> META-INF/
      |........|-> APPLICATION.XML
      |........|-> MANIFEST.MF
      |
      |-> MYAPP.jar
      |........|-> META-INF/
      |............|-> APPLICATION.XML
      |............|-> MANIFEST.MF
      |
      |-> MYLIB.jar


      The reference to MYLIB.JAR must be put in
      MYAPP.EAR/MYAPP.JAR/META-INF/MANIFEST.MF
      as this sample:

      ------- MYAPP.EAR/MYAPP.JAR/META-INF/MANIFEST.MF ----
      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.6.1
      Created-By: 1.4.2_06-b03 (Sun Microsystems Inc.)
      Class-Path: MYLIB.jar
      -----------------------------------------------------