• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference btn Jar, War and Ear File

 
Manish Jaju
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are differences between Jar, War and Ear File.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jar is the Java archive - that has all normal java classes.
war is the web archive containing web relates stuffs like Servlets, Jsp ..
ear is the enterprise archive having both jar & war.
 
Manish Jaju
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But servlet is also java file, won't it be included in Jar file. and what about EJB files, which are also java Files. Please clarify
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Manish Vyas:
But servlet is also java file, won't it be included in Jar file. and what about EJB files, which are also java Files. Please clarify


Ejb's will be inside a jar.

Servlet in the war is used by the containers for deploying in the web environments, which has it's own deployment descriptor called web.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic