Chapter 22. Supplemental References
22.1. Types of Java Archives
|Archive Type||Extension||Purpose||Directory structure requirements|
|Java Archive||.jar||Contains Java class libraries.|| |
|Web Archive||.war|| |
Contains Java Server Pages (JSP) files, servlets, and XML files, in addition to Java classes and libraries. The Web Archive's contents are also referred to as a Web Application.
|Resource Adapter Archive||.rar|| |
The directory structure is specified by the JCA specification.
Contains a Java Connector Architecture (JCA) resource adapter. Also called a connector.
|Enterprise Archive||.ear|| |
Used by Java Enterprise Edition (EE) to package one or more modules into a single archive, so that the modules can be deployed onto the application server simultaneously. Maven and Ant are the most common tools used to build EAR archives.
Any of the following types of modules.
|Service Archive||.sar|| |
Similar to an Enterprise Archive, but specific to the JBoss EAP.