The J2EE spec strongly recommends the use of Value...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alan_Josephson
Posted On:   Monday, August 28, 2000 03:41 PM

The J2EE spec strongly recommends the use of Value Objects (simple, structure-like classes) for passing data back and forth between EJBs and EJB clients. These objects are characterized by get methods for accessing class variables and the use of wholesale constructors. Is there a technical reason why these objects cannot have set methods? Or is it purely to reinforce the notion that I am not directly interacting with an EJB object? Specifically, I would like to get a value object from an EJB method, update some of the data, and ship it back. Of course, value objects are necessarily serializable.

About | Sitemap | Contact