
- Forum
- Programming Talk
- Java
- Difference between .jar .war & .ear
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 ...
-
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.
-
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)
-
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

Reply With Quote





