-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrpc.xml
20 lines (16 loc) · 985 Bytes
/
rpc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<import resource="classpath:spring/spring.xml" />
<!--dubbo rpc config-->
<dubbo:application name="medtree-service-im" owner="medtree"/>
<dubbo:registry address="zookeeper://zknode1:2181?backup=zknode2:2182" />
<dubbo:protocol name="dubbo" port="20881" />
<bean id="imService" class="com.linbox.im.server.connector.rpc.IMService"></bean>
<dubbo:service interface="com.linbox.im.interfaces.IIMService" ref="imService" timeout="5000" loadbalance="roundrobin"/>
<!--dubbo rpc config-->
</beans>