- Posted by: sundar varadarajan
- Posted on: July 07 2004 06:13 EDT
what is the difference between business delegate pattern and Value object pattern.
Hi, what is the difference between business delegate pattern and Value object pattern. RegardssundarThe purpose of Value Object pattern is to avoid multiple fine grained calls. You bundle the data required to execute a use case or part of a use case and send it to EJB(Session Facade).
The business dlegate pattern reduces the coupling between client and ejb. Client will always use business delegate API rather than EJB API.
Hope this helps !
For example if u have emp-name , emp-id and salary to be send to server (or in return) you will wrap them in a searializable object and send it through network.This is the value object pattern.
In turn you may want to hide the internal implementation of ejb look up etc from the client , you will put them in a business delegate.The client will be interacting through the delegate .