Chapter 21. Client Packaging

This chapter is for the Client component provider; that is, the person in charge of developing the client components on the client side. It describes how the client components should be packaged.

21.1. Principles

Client components are packaged for deployment in a standard Java programming language Archive file called a JAR file (Java ARchive). The document root contains a subdirectory called META-INF, which contains the following files and directories:

The manifest of this client JAR must contain the name of the class to launch (containing the main method). This is defined by the value of the Main-Class attribute of the manifest file. For a standalone client (not bundled in an EAR), all the EJB classes (except the skeleton) on which lookups will be performed must be included.

21.1.1. Client Packaging Example

Two examples of building a Java client are provided: