dubbo-demo-consumer.xml 1.2 KB
Newer Older
S
shenhongxi 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
武汉红喜's avatar
武汉红喜 已提交
2

S
shenhongxi 已提交
3 4 5
<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"
武汉红喜's avatar
武汉红喜 已提交
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
S
shenhongxi 已提交
7 8
	http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">

武汉红喜's avatar
武汉红喜 已提交
9
    <!-- 这里的配置将覆盖properties里的配置 -->
S
shenhongxi 已提交
10 11 12 13
	<!--&lt;!&ndash; 提供方应用信息,用于计算依赖关系 &ndash;&gt;-->
	<!--<dubbo:application name="whatsmars_consumer" />-->
	<!--&lt;!&ndash; 使用zookeeper注册中心暴露服务地址 &ndash;&gt;-->
	<!--<dubbo:registry address="zookeeper://127.0.0.1:2181" />-->
S
shenhongxi 已提交
14

武汉红喜's avatar
武汉红喜 已提交
15
	<dubbo:reference id="demoService" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" retries="2" />
S
shenhongxi 已提交
16

武汉红喜's avatar
武汉红喜 已提交
17 18 19 20 21
	<dubbo:reference id="demoService2" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService"
					 url="hessian://127.0.0.1:8080/org.hongxi.whatsmars.dubbo.demo.api.DemoService" />

	<dubbo:reference id="demoService3" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" protocol="hessian" />

S
shenhongxi 已提交
22
</beans>