The example programs in Exercise 7.2 illustrate the remaining four types of entity-bean relationship:
Many-to-one unidirectional (Cruise-Ship)
One-to-many bidirectional (Cruise-Reservation)
Many-to-many bidirectional (Customer-Reservation)
Many-to-many unidirectional (Cabin-Reservation)
If you already have JBoss running, there is no reason to restart it.
No database is initialization needed; JBoss will create the needed tables at bean deployment.
Perform the following steps:
Open a command prompt or shell terminal and change to the
ex07_2 directory created by the extraction
JBOSS_HOME environment variables to point to where
your JDK and JBoss 4.0 are installed. Examples:
Add ant to your execution path.
Perform the build by typing
As in the last exercise, you will see
rebuilt, copied to the JBoss
and redeployed by the application server.
No new concepts are introduced in the JBoss-specific deployment descriptors.
This exercise uses six example programs to demonstrate ...