Pages

Monday, November 9, 2009

Difference Between JAR, WAR and EAR files

All these JAR, WAR and EAR files can be created using JAR tool.

JAR (Java ARchive) contains
  • Library Class files
  • Resource files
  • Property files

WAR (Web ARchive) contains
  • JAR files (lib)
  • Java Class files (classes)
  • JSP, HTML, JS, CSS and image files
  • Deployment Descriptor (web.xml) and other configuration XML files
It is also called as Web Module.

EAR (Enterprise ARchive) contains
  • WAR files
  • JAR files
  • Enterprise Java Beans
  • Application Deployment Descriptor (application.xml) and other configuration XML files

EAR contains the complete enterprise application which consists of one or more web modules.

Note: Tomcat deals only with WAR files. If you want to install EAR files, use Apache Geronimo

For more details, refer http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=2

No comments:

Post a Comment