Deployment : war, ear and jar files
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.
- A
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
.jar files, and a weblogic.xml deployment descriptor, which configures WebLogic Server-specific elements for Web applications. Enterprise JavaBean ( .jar )
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
Summary
.jar extension.Summary
Deployment units that are packaged using the
jar utility have a specific file extension depending on the type:- Resource adapters are packaged as
.rarfiles. - 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 .waror.jarfiles are then packaged in an Enterprise Application.earfile. - 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
.jarfiles.
No comments:
Post a Comment