Chapter 4 of the EJB book walked you through a very basic example of creating one entity bean that mapped to one table and a session bean that acted as a façade to this entity bean. The entity bean was a simple Cabin entity that emulates a room on a ship. The session bean was a TravelAgent EJB that acted as the business process for interacting with the Cabin entity.
This exercise allows you to compile and deploy the code from Chapter 4 almost verbatim. You'll see how you can build and deploy an EJB-JAR with an entity bean on the JBoss application server.
Start up JBoss as described earlier in Workbook 1.
JBoss comes with an embedded Java database called Hypersonic SQL. All of the examples in the workbook use this database, so there is no need to install and configure any external server. Also, you do not need to create any database tables because the JBoss Java Persistence implementation can be configured to autogenerate them for you 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 process.
JBOSS_HOME environment ...