What is the difference between EAR, JAR and WAR file?- Modules are packaged based on their functionality as EAR, JAR and WAR files.
1. JAR files (.jar): Modules which contain EJB class files and EJB deployment descriptor are packed as JAR files. 2. WAR Files (.war): Web modules which contain servlet class files, JSP files, supporting files, GIF and HTML files are packaged as JAR file. 3. EAR Files (.ear): ‘.jar’ & ‘.war’ files are packaged as JAR files. ‘Ear’ stands for enterprise archive. These files are deployed in the application server.
|