DUBBO学习-(4) 参数回调

<?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">

    <!--应用名称-->
    <dubbo:application name="hello-world-app"/>

    
    <!--多注册中心,启动时不检查,且不是默认的注册中心-->

    <!--暴露端口的地址-->
    <dubbo:protocol name="dubbo" port="20880" />

    <dubbo:service interface="com.learn.core.demo.CallbackService" ref="callbackService" connections="1" callbacks="100" >

        <dubbo:method name="addListener">
            <dubbo:argument index="1" callback="true"/>
        </dubbo:method>

    </dubbo:service>

    <bean class="com.learn.core.demo.provider.CallbackServiceImpl" id="callbackService"/>

</beans>

 

posted @ 2018-05-15 16:18  小严  阅读(795)  评论(0编辑  收藏  举报