Dear all, I am trying to design a large scale system with optimal EJB communication. I was wondering with the Value Object Design Pattern, how would a CMP 2.0 spec use the Value Object to SET the values in the entity bean? The way I retrieve values is exactly how WROX does it in "Professional EJB, Common EJB Design Patterns Page 520).
There are the mapped variables which are persisted automatically by the containers persistence engine as normal in the main implementation class. As a change, the entity bean extends my value object class which has a getData() method which basically returns this.seller, this.description, etc in a class. This is all fine and dandy, as the Value Object is not a field managed by the bean. But is it possible to set in the same manner, where I send it a value object (using CMP2.0 keep in mind), and I set the variables then inside the set method? Should I make a method called setValueObject(ValueObject v) that calls say setSeller and setDescription() explicitly? Would this set off then a EJBStore after every set call then? Is there a way I could have only one EJBStore command be called every time I set a value object using EJB2.0? Keep in mind I'm trying to avoid BMP. Warmest Regards, Eric Dunn =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
