Browse Today's favorites or All time favorites.
Please Sign In or Register to share and submit your questions.
Java Queries
Complete java interview questions library
What are ear, war and jar files? What are J2EE Deployment Descriptors?
ear, war and jar are standard application deployment archive files. Since they are a standard, any application server will know how to unpack and deploy them.
An EAR file is a standard JAR file with an ".ear" extension, named from Enterprise Archive file. A J2EE application with all of its modules is delivered in EAR file. JAR files can’t have other JAR files. But EAR and WAR (Web Archive) files can have JAR files.
An EAR file contains all the JARs and WARs belonging to an application. JAR files contain the EJB classes and WAR files contain the Web components (JSPs, static content (HTML, CSS, GIF etc), Servlets etc.). The J2EE application client's class files are also stored in a JAR file. EARs, JARs, and WARs all contain an XML-based deployment descriptor.
Deployment Descriptors
A deployment descriptor is an XML based text file with a ".xml" extension that describes a component's
deployment settings. A J2EE application and each of its modules has its own deployment descriptor.
Do not see interviews as the chance
Do not see interviews as the chance, think it as an opportunity to present you to a company. It is a chance for you to prove yourself in front of the interviewer, so you should come with full preparation of questions you need answers...
Write a comment