Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

.ear .war files  RSS feed

 
aliasger talib
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
can anyone tell me what exactly is the difference between an .ear, .jar and a .war file. i have a good idea about the ,jar file but dont know what exactly is contained in a .ear file. anyone has any idea? any worth while link will also do nicely.
cheers,
ali.
 
Jonathan Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An .ear file is an enterprise archive file and is associated with application assembly.
http://java.sun.com/j2ee/j2ee-1_4-pfd-spec.pdf
(search for .ear)
To quote:
"The Application Assembler takes a set of components developed by Application
Component Providers and assembles them into a complete J2EE application
delivered in the form of an Enterprise Archive (.ear) file. The Application
Assembler will generally use GUI tools provided by either a Platform Provider or
Tool Provider. The Application Assembler is responsible for providing assembly
instructions describing external dependencies of the application that the Deployer
must resolve in the deployment process."
A .war files is a web archive file.
This is used for deployment, e.g. you create a war file into which you place your jsp, servlets, beans, images, etc.
You then deploy that to tomcat/jrun/websphere and they create an application from that war
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This does not belong in Web Services. I'm moving this to J2EE/EJB topic.
Kyle
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!