Multiple choice technology architecture

The Enterprise Java Bean 2.0 specification has introduced the notion of local Clients. What are local Clients and why were they introduced?

  1. Local Clients should be used when the web server is running on the same machine as the application server.

  2. Local Clients should be used when session beans need to communicate with entity beans.

  3. Beans deployed in the same Virtual Machine as the client should use local Clients.

  4. Local Clients have been introduced to make testing code easier.

  5. Local Clients have been introduced to improve maintainability

  6. Local Clients have been introduced to improve performance.

Reveal answer Fill a bubble to check yourself
C,F Correct answer
Explanation

EJB 2.0 local client views allow beans in the same JVM to communicate without remote call overhead. Local clients were introduced to improve performance by eliminating RMI/IIOP overhead when client and bean are co-located. Local interfaces are required for beans in the same container, not merely on the same machine.