background image

Starting the Application Server

<< Coding the PubQuery Session Bean | Packaging the Application >>
<< Coding the PubQuery Session Bean | Packaging the Application >>
208
J
AVA
API
FOR
XML R
EGISTRIES
Compiling the Source Files
To compile the application source files, go to the directory
<INSTALL>/
javaeetutorial5/examples/jaxr/clientsession
. Use the following com-
mand:
asant build
The
build
target places the properties file and the class files in the
build
direc-
tory.
Starting the Application Server
To run this example, you need to start the Application Server. Follow the instruc-
tions in Starting and Stopping the Application Server (page 28).
Creating JAXR Resources
To use JAXR in a Java EE application that uses the Application Server, you need
to
access
the
JAXR
resource
adapter
(see
Implementing
a
JAXR
Client, page 174) through a connector connection pool and a connector resource.
You can create these resources in the Admin Console.
If you have not done so, start the Admin Console as described in Starting the
Admin Console (page 29).
To create the connector connection pool, perform the following steps:
1. In the tree component, expand the Resources node, then expand the Con-
nectors node.
2. Click Connector Connection Pools.
3. Click New.
4. On the General Settings page:
a. Type
jaxr-pool
in the Name field.
b. Choose
jaxr-ra
from the Resource Adapter drop-down list.
c. Choose
com.sun.connector.jaxr.JaxrConnectionFactory
(the
only choice) from the Connection Definition drop-down list
d. Click Next.
5. On the next page, click Finish.