Understanding an application's JAR files using the jar command

The EAR file is a top level JAR file and holds other JAR files. This packaging provides a single JAR file to simplify the deployment process. The use and organization of this JAR and those for EJB and WEB modules is explained in this recipe using the Java JDK jar command. While this command is more often used to create a JAR file, it can also be used to examine the structure of an existing JAR file. Upon the creation of a JAR file is it good to be able to verify its contents when a deployment tool performs other than as expected.

Getting ready

There are several different types of files used in the deployment of an application. The following table lists these files along with the internal ...

Get EJB 3.1 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.