Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification
IBM J2EE Practice Test
20 Free IBM Practice Questions for the 484 Exam

Answer 5

Correct answer: d

Explanation:

The SessionFacade pattern uses a session bean as a facade to encapsulate the complexity of interactions between the business objects participating in a workflow. It manages the business objects, and provides a uniform coarse-grained service access layer to clients. Fine-grained access through remote interfaces is inadvisable because it increases network traffic and latency. Using session façade will reduce network traffic since the fine-grained access now becomes local, between the session façade and the business objects. So, choice B is a clear advantage of this pattern, which makes it incorrect.

Choice D is correct because it is not an advantage of the SessionFacade pattern. If the client accesses the enterprise beans directly without a session facade, transaction demarcation burden comes on the client and can produce unwanted results. Using a session façade, takes this responsibility off the client. Because the Session Facade represents the workflow for the use cases, it is more logical to apply transaction management at the Session Facade level.
The facade offers a central place for managing and defining transaction control in a coarse-grained fashion.

When you expose business objects to the client, the client must understand and be responsible for the business data object relationships, and must be able to handle business process flow. The Session Facade abstracts the underlying business object interactions and provides a service layer that exposes only the required interfaces. Thus, it hides from the client's view the complex interactions between the participants. So, choices A and C are advantages, hence incorrect.

Next page > Question 6

Explore Computer Certification

About.com Special Features

Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2009 About.com, a part of The New York Times Company.

All rights reserved.