Read about the Service Locator pattern. Implement the getService(String jndiName) method in ServiceLocator. It will implement logic for working with the context and cache. 1) Return the required service from the cache. 2) If the cache doesn't have the required service.
You must be signed in to leave a comment
This page doesn't have any comments yet