Difference between ear, war and jar files.
Enterprise Application ( .ear )
you can say it's a collection of war & jar files
Web Application ( .war )
- A servlet or JSP page, along with any helper classes.
web.xmldeployment descriptor, a J2EE standard XML document that configures the contents of a WAR file.
Web applications may also contain JSP tag libraries, static .html and image files, supporting classes and
.jarfiles, and a
weblogic.xmldeployment descriptor, which configures WebLogic Server-specific elements for Web applications.
Enterprise JavaBeans (EJBs) are reusable Java components that implement business logic and enable you to develop component-based distributed business applications. EJB modules are packaged as archive files having a
Deployment units that are packaged using the
jarutility have a specific file extension depending on the type:
- Resource adapters are packaged as
- Enterprise applications are packaged as
.earfiles, and can contain other Java EE modules such as EJBs, JDBC, JMS, Web Applications, and Resource Adapters.
- Web Services can be packaged either as
.warfiles or as
.jarfiles, depending on whether they are implemented using Java classes or EJBs. Typically, the .
.jarfiles are then packaged in an Enterprise Application
- Java EE libraries are packaged either as an Enterprise Application (
.earfile) or as a standard Java EE module.
- Client applications and optional packages are packaged as