第2.1.9章 WEB系统最佳实践Spring文件配置之spring-dubbo.xml
2016-10-24 19:50
567 查看
spring-dubbo.xml是结合阿里的Dubbo配置做服务治理,将系统接口托管给Zookeeper,实现RMI调用的方式.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> <dubbo:application name="${domain}" owner="${dubbo.owner}" organization="${dubbo.organization}" /> <!-- 使用zookeeper注册中心暴露服务地址 --> <dubbo:registry address="${dubbo.registry.address}" /> <!-- 端口号,默认为20880 --> <dubbo:protocol name="dubbo" port="${dubbo.protocol}" /> <!--统计服务的调用次调和调用时间的监控中心 --> <!-- <dubbo:monitor protocol="registry"/> --> <!-- 要暴露的服务接口 --> <dubbo:service interface="com.dzmsoft.ucs.api.service.UserService" ref="userServiceImpl" validation="${dubbo.service.validation}" version="${dubbo.service.version}" timeout="${dubbo.service.timeout}" retries="${dubbo.service.retries}" loadbalance="${dubbo.service.loadbalance}" actives="${dubbo.service.actives}" /> </beans>
相关文章推荐
- 第2.1.1章 WEB系统最佳实践Spring文件配置之spring-cache.xml
- 第2.1.2章 WEB系统最佳实践Spring文件配置之spring-common.xml
- 第2.1.3章 WEB系统最佳实践Spring文件配置之spring-dao.xml
- 第2.1.4章 WEB系统最佳实践Spring文件配置之spring-hessian-server.xml
- 第2.1.5章 WEB系统最佳实践Spring文件配置之spring-mvc.xml
- 第2.1.6章 WEB系统最佳实践Spring文件配置之spring-hessian-client.xml
- 第2.1.7章 WEB系统最佳实践Spring文件配置之spring-shiro.xml
- 第2.1.8章 WEB系统最佳实践Spring文件配置之spring-email.xml
- 第2.1章 WEB系统最佳实践Spring文件配置
- 第2.1.10章 WEB系统最佳实践Spring文件配置多数据源
- 第2.3.1章 WEB系统最佳实践属性配置之ehcache.xml
- Spring的XML配置文件的十二个最佳方法实践
- Spring的XML配置文件的十二个最佳方法实践
- Spring:总结用XML配置的十二个最佳实践
- 转:Spring XML配置十二个最佳实践
- web.xml文件中配置(servlet, spring, filter, listenr)的加载顺序 研究
- Spring 总结XML配置的十二个最佳实践-Java基础-Java-编程开发
- 开发框架:Spring XML配置十二个最佳实践
- Spring 总结用XML配置的十二个最佳实践 收藏
- jsf、Spring、Hibernate 集成 web.xml配置文件