Discussions

EJB design: Service Locator in Clustered Environment

  1. Service Locator in Clustered Environment (1 messages)

    Hi,
      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

    Thanks,
    Prasanna Kumar
  2. 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.


    Kingshuk