background image

Using JAXR Clients in Java EE Applications

<< AXRQueryByWSDLClassification Example | Coding the PubQuery Session Bean >>
<< AXRQueryByWSDLClassification Example | Coding the PubQuery Session Bean >>
206
J
AVA
API
FOR
XML R
EGISTRIES
Other Targets
To remove the
build
directory and class files, use the command
asant clean
To obtain a syntax reminder for the targets, use the command
asant -projecthelp
Using JAXR Clients in Java EE
Applications
You can create Java EE applications that use JAXR clients to access registries.
This section explains how to write, compile, package, deploy, and run a Java EE
application that uses JAXR to publish an organization to a registry and then
query the registry for that organization. The application in this section uses two
components: an application client and a stateless session bean.
The section covers the following topics:
· Coding the application client:
MyAppClient.java
· Coding the
PubQuery
session bean
· Compiling the source files
· Starting the Application Server
· Creating JAXR resources
· Creating and packaging the application
· Deploying the application
· Running the application client
You will find the source files for this section in the directory
<INSTALL>/
javaeetutorial5/examples/jaxr/clientsession
. Path names in this section
are relative to this directory.
The following directory contains a built version of this application:
<INSTALL>/javaeetutorial5/examples/jaxr/provided-ears