EJB design: Service Locator in Clustered Environment
- Posted by: Prasanna K
- Posted on: October 15 2004 07:39 EDT
I am using Service Locator pattern to look up EJB Home objects and Cache them. I am planning to Cluster my WebLogic Application Server. Since I am caching my Home objects will it create problems in Clustered environment? If it fails is there any solution to implement Service Locator in Clustered environment? Please let me know
Since I am caching my Home objects will it create problems in Clustered environment?
No, if your home object is set as clusterable too. You can do this by setting <home-is-clusterable>True</home-is-clusterable> in weblogic-jar.xml. Probably this is true by default - not sure. In this case the home object you are caching in the service locator is a cluster aware object - the usual routing logic and failover applies.