![Red Hat Application Server Скачать руководство пользователя страница 180](http://html.mh-extra.com/html/red-hat/application-server/application-server_manual_1427406180.webp)
172
Chapter 19. Launching J2EE Client Applications
A convenient way is to update the
carol.properties
of your
client.jar
with your customized
carol.properties
file. That is,
jar -uf client.jar carol.properties
19.2.2. Trace Configuration
The client container
client.jar
includes a
traceclient.properties
file. This is the same file
as the one in
JONAS_ROOT/conf
directory.
A different configuration file can be used for the traces by specifying the parameter
-traceFile
when invoking the client container.
The file in the
client.jar
can also be replaced with the command:
jar -uf client.jar
traceclient.properties
19.2.3. Classpath Configuration
Some jars/classes can be added to the client container. For example, if a class requires some extra
libraries/classes, you can use the
-cp path/to/classes
option.
The classloader of the client container will use the libraries/classes provided by the
-cp
flag.
19.2.4. Specifying the Client to Use (EAR Case)
An EAR can contain many Java clients, which are described in the
application.xml
file inside the
´
module
µ
´
java
µ
elements.
To invoke the client container with an ear, such as
java -jar client.jar my.ear
, specify the
Java client to use if there are many clients. Otherwise, it will take the first client.
To specify the JAR client to use from an EAR, use the argument
-jarClient
and supply the name
of the client to use.
The
earsample
example in the JOnAS examples has two Java clients in its
ear
file.
19.2.5. Specifying the Directory for Unpacking the EAR (EAR Case)
By default, the client container will use the system property
java.io.tmpdir
. To use another tem-
porary directory, specify the path by giving the argument
-tmpDir
to the client container.
19.3. Examples
The
earsample
and
jaasclient
examples of the JOnAS examples are packaged for use by the
client container. The first example demonstrates the client inside an
.ear
file. The second example
demonstrates the use of a standalone client.
Содержание Application Server
Страница 1: ...Red Hat Application Server JOnAS User Guide ...
Страница 8: ......
Страница 22: ...14 Chapter 1 Java Open Application Server JOnAS a J2EE Platform ...
Страница 58: ...50 Chapter 3 JOnAS Configuration ...
Страница 66: ...58 Chapter 5 JOnAS Class Loader Hierarchy ...
Страница 78: ...70 Chapter 6 JOnAS Command Reference ...
Страница 80: ......
Страница 86: ...78 Chapter 7 Developing Session Beans ...
Страница 136: ...128 Chapter 9 Developing Message Driven Beans ...
Страница 142: ...134 Chapter 10 Defining the Deployment Descriptor ...
Страница 148: ...140 Chapter 11 Transactional Behavior of EJB Applications ...
Страница 158: ...150 Chapter 14 EJB Packaging ...
Страница 162: ...154 Chapter 15 Application Deployment and Installation Guide ...
Страница 164: ......
Страница 176: ...168 Chapter 18 WAR Packaging ...
Страница 178: ......
Страница 184: ...176 Chapter 20 Defining the Client Deployment Descriptor ...
Страница 186: ...178 Chapter 21 Client Packaging ...
Страница 188: ......
Страница 192: ...184 Chapter 23 EAR Packaging ...
Страница 194: ......
Страница 200: ...192 Chapter 24 JOnAS Services ...
Страница 204: ...196 Chapter 25 JOnAS and the Connector Architecture ...
Страница 222: ...214 Chapter 27 Ant EJB Tasks Using EJB JAR ...
Страница 234: ...226 Chapter 29 Web Services with JOnAS ...
Страница 236: ......
Страница 260: ...252 Chapter 34 How to use Axis in JOnAS ...
Страница 270: ...262 Chapter 36 Web Service Interoperability between JOnAS and BEA WebLogic ...
Страница 296: ......