• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

jar and war file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a simple google search ...
http://csdl.ics.hawaii.edu/~johnson/613f00/archive/msg00027.html
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic