Java Reference
In-Depth Information
you set up separate value objects for each subset, that is, you define each value object to contain and
handle the attributes required by a particular client's use of the entity bean. In the MemberEJB example,
you may set up a value object to handle all the contact information (for example, address, phone
number, and so on) and another value object to handle all the membership related information (for
example, membership year, last due payment date, and so on).
It is important to keep performance considerations in mind when developing entity beans, especially for
BMP entity beans, since you are responsible for writing all database-access code. Using value objects
to improve performance is a proven best practice. Use it whenever you feel it is appropriate.
Summary
This chapter provides an overview of the following topics:
 
The implementation and use of the ejbCreate , ejbRemove , ejbLoad, and ejbStore
methods as well as finder methods
 
The implementation of EJB's business methods
 
The use of value objects for improved performance
Search WWH ::




Custom Search