Skip to Main Content
Enterprise JavaBeans, Fourth Edition
book

Enterprise JavaBeans, Fourth Edition

by Sacha Labourey, Bill Burke, Richard Monson-Haefel
June 2004
Intermediate to advanced content levelIntermediate to advanced
792 pages
23h 17m
English
O'Reilly Media, Inc.
Content preview from Enterprise JavaBeans, Fourth Edition

Exercise Code Setup and Configuration

You can download the example code for the exercises from http://www.oreilly.com/catalog/entjbeans4/workbooks/index.html. Exercises that require a database will use JBoss’s default embedded database. Consequently, no additional database setup is required. This workbook includes an Appendix that shows you how to configure JBoss to use a different database, if you want to.

Exercises Directory Structure

The example code is organized as a set of directories, one for each exercise (Figure 21-5). You’ll find the code of each exercise in the src/main subdirectory and the configuration files in src/resources.

Exercises directory structure

Figure 21-5. Exercises directory structure

To build and run the exercises, you’ll use the Ant tool. A build.xml is provided for each exercise. It contains the Ant configuration needed to compile the classes, build the EJB JAR, deploy it to JBoss, and run the client test applications. For this reason, the Ant tool is provided with the exercises and can be found in the ant directory.

Tip

You can find out more about Ant at the Apache Jakarta web site http://jakarta.apache.org/ant/.

Environment Setup

For the Ant scripts to work correctly, first set some environment variables in the shells you will use to run the exercises:

  • The JAVA_HOME environment variable must point to where your JDK is installed.

  • The JBOSS_HOME environment variable must point to where JBoss ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Enterprise JavaBeans, Third Edition

Enterprise JavaBeans, Third Edition

Richard Monson-Haefel
Enterprise JavaBeans 3.1, 6th Edition

Enterprise JavaBeans 3.1, 6th Edition

Andrew Lee Rubinger, Bill Burke
Enterprise JavaBeans 3.0, 5th Edition

Enterprise JavaBeans 3.0, 5th Edition

Richard Monson-Haefel, Bill Burke

Publisher Resources

ISBN: 059600530XSupplemental ContentCatalog PageErrata