172
A convenient way is to update the
carol.properties
19.2.2. Trace Configuration
The client container
as the one in
JONAS_ROOT/conf
A different configuration file can be used for the traces by specifying the parameter
when invoking the client container.
The file in the
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
The classloader of the client container will use the libraries/classes provided by the
19.2.4. Specifying the Client to Use (EAR Case)
An EAR can contain many Java clients, which are described in the
module
java
To invoke the client container with an ear, such as
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
of the client to use.
The
example in the JOnAS examples has two Java clients in its
earsample
19.2.5. Specifying the Directory for Unpacking the EAR (EAR Case)
By default, the client container will use the system property
porary directory, specify the path by giving the argument
19.3. Examples
The
and
earsample
client container. The first example demonstrates the client inside an
demonstrates the use of a standalone client.
carol.properties
file. That is,
jar -uf client.jar carol.properties
includes a
client.jar
directory.
can also be replaced with the command:
-cp path/to/classes
elements.
examples of the JOnAS examples are packaged for use by the
jaasclient
Chapter 19. Launching J2EE Client Applications
of your
client.jar
traceclient.properties
option.
java -jar client.jar my.ear
-jarClient
java.io.tmpdir
-tmpDir
with your customized
file. This is the same file
jar -uf client.jar
-cp
application.xml
and supply the name
file.
ear
. To use another tem-
to the client container.
file. The second example
.ear
-traceFile
flag.
file inside the
, specify the
Need help?
Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?
Questions and answers