• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference b/w .ear, .war & .jar ?

 
SJ Rao
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell me the exact difference b/w .ear, .jar & .war ?
& under what circumstances should a application have these files ?

One of my application has a .ear file & an other application doesnt have. Both applications use framework which is based on MVC architecture.

So can someone tell me when do we deploy .ear file ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always think of it in these tearms.

ear = Enterprise Application that you place in an application server
war = Web Application that you place in a web container
jar = Java Application that can be placed anywhere and can run just from a command line

Mark
 
singhdil
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAR is used in Java Beans as a Componet Technology(COM) , applets and other application having main class that is Desktop applications.
WAR is for servlets
EAR for J2EE Server Side Component Technology(DCOM)

Any Doubt?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!