deploytool Tips for Entity Beans with Container-Managed Persistence

Chapter 2 covered the basic steps for building and packaging enterprise beans. This section highlights the tasks in deploytool that are needed for entity beans with container-managed persistence. The examples referenced in this section are from A Guided Tour of the RosterApp Settings (page 128).

Specifying the Bean’s Type

In the New Enterprise Bean wizard, specify the bean’s type and persistent management.

1.
In the Edit Contents dialog box, add all of the classes required by the entity bean and by its related beans.
2.
In the General dialog box, select the Entity radio button.
3.
In the General dialog box, specify the local interfaces of the entity bean. (If the bean also ...

Get J2EE™ Tutorial, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.