background image

Running the Application Client

<< Packaging the Application | More Information on JAXR >>
<< Packaging the Application | More Information on JAXR >>
210
J
AVA
API
FOR
XML R
EGISTRIES
Deploying the Application
The
build.xml
file in the
clientsession
directory defines an Ant target that
deploys the
clientsession.ear
file and returns a client JAR file. Use the fol-
lowing command:
asant deploy-ear
This command deploys the application and returns a JAR file named
client-
sessionClient.jar
in the
clientsession
directory.
Running the Application Client
To run the client, use the following command:
appclient -client clientsessionClient.jar
The program output in the terminal window looks like this:
To view the bean output,
check <install_dir>/domains/domain1/logs/server.log.
In the server log, you will find the output from the
executePublish
and
exe-
cuteQuery
methods, wrapped in logging information.
After you run the example, use the following command to undeploy the applica-
tion:
asant undeploy-ear
You can use the
run-delete
target in the
simple
directory to delete the organi-
zation that was published.
Further Information
For more information about JAXR, registries, and web services, see the follow-
ing:
· Java Specification Request (JSR) 93: JAXR 1.0:
http://jcp.org/jsr/detail/093.jsp
· JAXR home page: