O'Reilly logo

J2EE™ Tutorial, The by Beth Stearns, Monica Pawlan, Eric Jendrock, Kim Haase, Dale Green, Stephanie Bodoff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

deploytool Tips for Entity Beans with Bean-Managed Persistence

Chapter 4 gave step-by-step instructions for creating and packaging a session bean. To build an entity bean, you follow the same procedures, but with the following exceptions.

1.
In the New Enterprise Bean wizard, specify the bean’s type and persistent management.
a. In the General dialog box, select the Entity radio button.
b. In the Entity Settings dialog box, select the radio button for Bean-Managed Persistence.
2.
In the Resource Refs tab, specify the resource factories referenced by the bean. These settings enable the bean to connect to the database. For instructions, see the section deploytool Tips for Resource References (page 354).
3.
Before you deploy the bean, verify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required