The Cabin EJB demonstrates basic CMP 2.0 capability for a simple entity bean mapped to a single table. The following sections outline the steps necessary to build, deploy, and execute the Cabin EJB example. Please note that because you’re using JBoss’s default embedded database, you don’t need to configure the database or create tables. The code you’ll see here mirrors the example code provided in Chapter 4 of the EJB book.
Start up JBoss as described in the JBoss Installation and Configuration chapter at the beginning of this workbook.
The database table for this exercise will automatically be created in JBoss’s default database, HypersonicSQL, when the EJB JAR is deployed.
Perform the following steps:
Open a command prompt or shell terminal and change to the
ex04_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
Perform the build by typing
ant. Ant uses
build.xml to figure out what to compile ...