In this exercise, you will learn how to use JAX-RPC’s client and server-side programming model with EJB 2.1. You will expose a stateless session bean as a web service. You will also investigate how to connect to and invoke on an existing web service from within EJB code. The stateless session bean that is exposed models the TravelAgentEndpoint in Chapter 15 of the EJB book. The supporting code for the rest of this exercise is borrowed from the exercises for Chapter 11 (Workbook 8). This exercise also introduces another stateless session bean that acts as a JAX-RPC client to the TravelAgentEndpoint EJB.
Perform the following steps:
Open a command prompt or shell terminal and change to the
ex15_1 directory created by the extraction
JBOSS_HOME environment variables to point to where
your JDK and JBoss 4.0 are installed. Examples:
ant to your execution path. Ant is the build
You need to clean and refresh the database. To do this, first
shutdown JBoss if you have it running and then run the
JBoss implements ...