In a J2EE application, we are using EJB2 in weblogic.
To avoid losing time building the initial context and looking up EJB Home interface, I'm considering the Service Locator Pattern.
But after a few search on the web I found that event if this pattern is often recommended for the InitialContext caching, there are some negative opinion about the EJB Home caching.
Questions:
- Is it safe to cache EJB Home lookup result ?
- What will happen if one my cluster node is no more working ?
- What will happen if I install a new version of the EJB without refreshing the service locator's cache ?