In this exercise, you will create and build the TravelAgent EJB. This simple bean illustrates the use of a stateless session bean and mirrors the code shown in Chapter 4 of the EJB section of this book.
If you already have JBoss running, there is no reason to restart it. Otherwise, start it up as instructed in the JBoss Installation and Configuration chapter.
The database should contain the 100 rows created by a successful
execution of the test programs from the previous exercise,
Perform the following steps:
Open a command prompt or shell terminal and change to the
ex04_2 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
Perform the build by typing
As in the last exercise, you will see
rebuilt, copied to the JBoss
and redeployed by the application server.
In this example, the
jboss.xml deployment descriptor overrides the default JNDI binding for ...