0
What is Service Locator pattern?

Open 1 Answers 51 Views Education

What is Service Locator pattern?

1 Answer

0

The service locator design pattern is used when we want to locate various services using JNDI lookup. Considering high cost of looking up JNDI for a service, Service Locator pattern makes use of caching technique. For the first time a service is required, Service Locator looks up in JNDI and caches the service object. Further lookup or same service via Service Locator is done in its cache which improves the performance of application to great extent.

by (54.6k points)
...