ejb集群,WebSphere集群中调用EJB的方法

在WebSphere集群环境中,为了更好地提供负载均衡和容错功能,调用EJB时把集群中的机器IP全部列进去:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL,"corbaloc::machine1_ip:9811,:machine2_ip:9812");
Context ctx = new InitialContext(env);
......
Tags:  远程调用ejb ejb调用 ejb集群

延伸阅读

最新评论

发表评论