码迷,mamicode.com
首页 > 其他好文 > 详细

DUBBO学习-(4) 参数回调

时间:2018-05-15 17:32:38      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:spring   sch   world   学习   com   nec   dex   ice   iba   

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

 

DUBBO学习-(4) 参数回调

标签:spring   sch   world   学习   com   nec   dex   ice   iba   

原文地址:https://www.cnblogs.com/JNUX/p/9041545.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!