zookeeper 多集群配置参考

spring/spring-dubbo.xml 里注册多个集群zk集群地址:

 <dubbo:registry id="defaultRegistry" protocol="${dubbo.protocol}" address="${dubbo.address}"/>

 <dubbo:registry id="ldapRegistry" protocol="${dubbo.protocol}" address="${ldap.dubbo.address}"/>

spring/spring-ref.xml里添加注册ID参数

 <dubbo:reference interface="com.jasonote.SupplierStatementService" registry="ldapRegistry" id="supplierStatementService" group="supplierStatementGroup" check="false" retries="0" timeout="5000"/>

Jason.wang

When you find your talent can't afford to be ambitious, be quiet and study !

You may also like...