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

jar and war file  RSS feed

 
Sunil Joshi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to EJB
I just want to know that what is the differance between .jar and .war file
Thank u
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a simple google search ...
http://csdl.ics.hawaii.edu/~johnson/613f00/archive/msg00027.html
 
Anurag Mishra
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
pls remember JWE.
means Jar->War->Ear
A Jar file consists of java Class files.
A Web Archive (WAR) file is a Java archive file used to store one or more of the following:
Servlets,JSP files, Utility classes,Static documents, such as HTML files, images, and sound.
Client-side applets, beans, and classes
Descriptive meta-information
Its standard file extension is .war. WAR files are used to package Web modules. A Web module can represent a stand-alone Web application, or it can be combined with other modules (for example, EJB modules) to form a J2EE application. The J2EE application can then be installed and run in a application server.
An Enterprise Archive file(EAR) represents a J2EE application that can be deployed in a application server. EAR files are standard Java archive files and have the file extension .ear. An EAR file can consist of the following:
One or more Web modules
One or more EJB modules
One or more application client modules
Additional JAR files required by the application
Any combination of the above.
The modules that make up the EAR file are themselves packaged in archive files specific to their types--for example, a Web module contains Web archive files and an EJB module contains Java archive files. EAR files also contain a deployment descriptor (an XML file) that describes the contents of the application and contains instructions for the entire application, such as security settings to be used in the run-time environment.
When an EJB module or Web module is installed as a stand-alone application, it is automatically wrapped in an Enterprise Archive (EAR) file.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ultimatix abc,
Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your profile accordingly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!