Multiple choice technology architecture

Which pattern is used by the Home interface of an EJB?

  1. Proxy

  2. Decorator

  3. Mediator

  4. Factory

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The EJB Home interface acts as a Factory pattern - it creates, finds, and removes EJB instances. EJB clients use JNDI to look up the Home interface (the factory), then call create() or findByPrimaryKey() methods to obtain bean references. This abstracts bean instantiation lifecycle. Proxy (A) is for remote/local interfaces, not Home. Decorator and Mediator don't apply.