This is a discussion on Difference between .jar .war & .ear within the Java Tutorials forums, part of the Articles and Tutorials category; Hello EveryBody, Please tell me what is the difference between .jar .war & .ear file and when we should use ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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) |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 10-19-2005 01:37 AM |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 09-29-2004 01:18 AM |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 08-29-2004 01:29 AM |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 07-29-2004 01:17 AM |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 04-17-2004 08:27 AM |