dubbo-lecuntao-consumer.xml
3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?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">
<!-- 扫描注解包路径,多个包用逗号分隔,不填pacakge表示扫描当前ApplicationContext中所有的类 -->
<dubbo:annotation package="com.lecuntao.ordering.**.helper"/>
<bean id="openConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="order" value="1"/>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="locations">
<list>
<value>classpath*:/config.properties</value>
</list>
</property>
</bean>
<!-- 生成远程服务代理,可以和本地bean一样使用demoService -->
<dubbo:reference id="foundationService" interface="com.xiniunet.foundation.service.FoundationService" check="false" timeout="30000" retries="0" >
<dubbo:method name="uploadFile" timeout="300000" retries="0" />
</dubbo:reference>
<dubbo:reference id="securityService" interface="com.xiniunet.security.service.SecurityService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="dataService" interface="com.xiniunet.data.service.DataService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="logService" interface="com.xiniunet.log.service.LogService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="masterService" interface="com.xiniunet.master.service.MasterService" check="false" timeout="30000" retries="0" version="xuchang1"/>
<dubbo:reference id="orderingService" interface="com.xiniunet.ordering.service.OrderingService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="inventoryService" interface="com.xiniunet.inventory.service.InventoryService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="purchasingService" interface="com.xiniunet.purchasing.service.PurchasingService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="saleService" interface="com.xiniunet.sales.service.SaleService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="warehouseService" interface="com.xiniunet.warehouse.service.WarehouseService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="transpationService" interface="com.xiniunet.transpation.service.TranspationService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="payableService" interface="com.xiniunet.payable.service.PayableService" check="false" timeout="30000" retries="0" />
<dubbo:reference id="ebusinessService" interface="com.xiniunet.ebusiness.service.EbusinessService" retries="0" timeout="300000" check="false">
</dubbo:reference>
<!-- 声明需要暴露的服务接口 -->
<dubbo:service interface="com.xiniunet.lecunstomization.service.SupplychainService" ref="supplychainService" retries="0" timeout="60000" >
</dubbo:service>
<dubbo:service interface="com.xiniunet.wosaicustomization.service.WosaiCustomizationService" ref="WosaiCustomizationService" retries="0" timeout="60000" >
</dubbo:service>
<!-- 和本地bean一样实现服务 -->
<bean id="supplychainService" class="com.lecuntao.ordering.customization.svc.SupplychainServiceImpl"/>
<bean id="wosaiCustomizationService" class="com.lecuntao.ordering.wosaicustomization.svc.WosaiCustomizationServiceImpl"/>
</beans>