Service Locator Pattern

Centralizes distributed service object lookups, provids a centralized point of control, and may act as a cache that eliminates redundant lookups.

Componentized Service Locator Pattern

PerfectJPattern provides a fully componentized version of the Service Locator Pattern. The Service Locator is implemented as a singleton that successfully hides naming API complexities and caches services for its clients.

UML Class Design


  • Uses ServiceLocator implementation to retrieve a Local EJB