![Red Hat Application Server Manual Download Page 185](http://html.mh-extra.com/html/red-hat/application-server/application-server_manual_1427406185.webp)
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:
•
application-client.xml
: The standard XML deployment descriptor in the format defined in
the J2EE 1.3 Specification. Refer to
$JONAS_ROOT/xml/application-client_1_4.xsd
.
•
jonas-client.xml
: The optional JOnAS-specific, XML deployment descriptor in the format
defined in
$JONAS_ROOT/xml/jonas-client_X_Y.xsd
.
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 stan-
dalone 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:
•
The first is the
build.xml
of the
earsample
example with a Java client inside the EAR (see
http://jonas.objectweb.org/current/examples/earsample/build.xml). Refer to the client1jar and
client2jar targets.
•
The second is the
build.xml
of the
jaasclient
example with a Java standalone client, which
performs a lookup on an EJB.
See http://jonas.objectweb.org/current/examples/jaasclient/build.xml; refer to the clientjars target.
Summary of Contents for Application Server
Page 1: ...Red Hat Application Server JOnAS User Guide ...
Page 8: ......
Page 22: ...14 Chapter 1 Java Open Application Server JOnAS a J2EE Platform ...
Page 58: ...50 Chapter 3 JOnAS Configuration ...
Page 66: ...58 Chapter 5 JOnAS Class Loader Hierarchy ...
Page 78: ...70 Chapter 6 JOnAS Command Reference ...
Page 80: ......
Page 86: ...78 Chapter 7 Developing Session Beans ...
Page 136: ...128 Chapter 9 Developing Message Driven Beans ...
Page 142: ...134 Chapter 10 Defining the Deployment Descriptor ...
Page 148: ...140 Chapter 11 Transactional Behavior of EJB Applications ...
Page 158: ...150 Chapter 14 EJB Packaging ...
Page 162: ...154 Chapter 15 Application Deployment and Installation Guide ...
Page 164: ......
Page 176: ...168 Chapter 18 WAR Packaging ...
Page 178: ......
Page 184: ...176 Chapter 20 Defining the Client Deployment Descriptor ...
Page 186: ...178 Chapter 21 Client Packaging ...
Page 188: ......
Page 192: ...184 Chapter 23 EAR Packaging ...
Page 194: ......
Page 200: ...192 Chapter 24 JOnAS Services ...
Page 204: ...196 Chapter 25 JOnAS and the Connector Architecture ...
Page 222: ...214 Chapter 27 Ant EJB Tasks Using EJB JAR ...
Page 234: ...226 Chapter 29 Web Services with JOnAS ...
Page 236: ......
Page 260: ...252 Chapter 34 How to use Axis in JOnAS ...
Page 270: ...262 Chapter 36 Web Service Interoperability between JOnAS and BEA WebLogic ...
Page 296: ......