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.xml
deployment 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
.rar
files. - Enterprise applications are packaged as
.ear
files, and can contain other Java EE modules such as EJBs, JDBC, JMS, Web Applications, and Resource Adapters. - Web Services can be packaged either as
.war
files or as.jar
files, depending on whether they are implemented using Java classes or EJBs. Typically, the .war
or.jar
files are then packaged in an Enterprise Application.ear
file. - Java EE libraries are packaged either as an Enterprise Application (
.ear
file) or as a standard Java EE module. - Client applications and optional packages are packaged as
.jar
files.
No comments:
Post a Comment