3 Replies Latest reply on Sep 4, 2008 10:54 AM by francis17101970

    library need in ear archive

    design2006

      Hi all,

      I have a newbie questions regarding packaging the ear file. Usually inside the ear file consist of ejb jar file and war file. But sometimes i saw some examples there also contains some library jar file. So how do i know what library jar file to be included in ear file during packaging ? thanks.

        • 1. Re: library need in ear archive
          jaikiran

          Are you asking which jar files to include in the EAR or where to include these jar files?

          Which version of which jar file to include actually depends on your application code. Either you or the person who built the application will be able to tell which jar files are required.

          • 2. Re: library need in ear archive
            design2006

            Hi,

            thanks for the reply.
            yea, i mean the library jar files that need to be included in the EAR archive. I am confusing on what jar files need to be put in WEB-INF/lib folder, and what jar files need to be put in the EAR archive.

            • 3. Re: library need in ear archive

              it's simply a matter of classloading.
              If you put files in the WEB-INF/lib dir they will be visible only to the web application. Good if these lib are only needed by the webapp
              On the other hand if you need the jar file for the WHOLE enterprise application put it in the ear file.