Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Difference between .jar .war & .ear

This is a discussion on Difference between .jar .war & .ear within the Java forums, part of the Programming Talk category; Hello EveryBody, Please tell me what is the difference between .jar .war & .ear file and when we should use ...

  1. #1
    ajagania is offline Junior Member Array
    Join Date
    Oct 2004
    Answers
    3

    Difference between .jar .war & .ear

    Hello EveryBody,

    Please tell me what is the difference between .jar .war & .ear file and when we should use which.

    Its very much confusing for me.

    Any pointers on this will be greatly appreciated.

    Thanks & Regards,

    Anant.


  2. #2
    Vasu is offline Member Array
    Join Date
    Nov 2004
    Answers
    36

    Re:Difference between .jar .war & .ear

    An EAR(Enterprise archive) is a top-level container which contains modules like:
    EJB modules, web modules, application client modules etc.

    A WAR file is for a Web application deployed to a servlet/JSP engine. It\'s got a WEB-INF directory, where the deployment descriptor web.xml sits. Underneath that are directories WEB-INF/classes and WEB-INF/lib, where web application classes and JARs live, respectively.

    An EAR file is an enterprise application deployed to an application server like WebLogic, WebSphere, JBOSS, etc. It might contain WARs, JARs, etc.

    EAR = WAR(Web module) + JAR(can be EJB module or application client module)


  3. #3
    ajagania is offline Junior Member Array
    Join Date
    Oct 2004
    Answers
    3

    Re:Difference between .jar .war & .ear

    Hey Vasu,

    Thanks for the reply...

    this is what i wanted...

    Thaks a lot..

    Anant.

    - Low aim is a crime.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...