This statement describes the potential benefit of a design pattern: The pattern reduces network rountrips between a client and an Enterprise Bean and gives the client a local copy of the data encapsulated by an Enterprise Bean after a single method call, instead of requiring several method calls. Which design pattern is being described?
-
Model -View-Controller
-
Business Delegate
-
Transfer Object
-
Intercepting filter
C
Correct answer
Explanation
The Transfer Object pattern (also called Value Object) creates a serializable object containing multiple data items that can be sent to the client in a single method call instead of multiple fine-grained calls. This reduces network roundtrips between client and EJB. MVC is about separation of concerns, Business Delegate reduces coupling between presentation tier and business tier, and Intercepting Filter is about request/response preprocessing.