<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://www.springframework.org/schema/beans" 
	xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"  
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
    http://code.alibabatech.com/schema/dubbo          
    http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
       
	<dubbo:application name="lidong-dubbo-core-provider"/>  
   
    <!-- 使用multicast广播注册中心暴露服务地址 -->  
    <!--  <dubbo:registry address="multicast://224.5.6.7:1234" /> -->  
   
    <!-- 使用zookeeper注册中心暴露服务地址 -->  
    <dubbo:registry id="lidong-dubbo-provider" address="zookeeper://127.0.0.1:2181" check="false" subscribe="false" register=""/>
    <dubbo:protocol id="lidong-dubbo" name="dubbo" port="20881"/>
    <dubbo:provider registry="lidong-dubbo-provider" protocol="lidong-dubbo"/>

	<!--监控中心-->
	<!--监控中心协议，如果protocol="registry 表示从注册中心发现监控中心地址，否则直连监控中心"-->
	<!--监控中心服务器地址  如192.168.1.111:7070-->
	<dubbo:monitor protocol="registry"/>


	<!-- 声明需要暴露的服务接口 -->
	
	<bean id="userService" class="com.lidong.dubbo.core.user.service.UserServiceImp" />
	<dubbo:service interface="com.lidong.dubbo.api.user.service.IUserService" ref="userService" timeout="500000"/>
	<bean id="loginService" class="com.lidong.dubbo.core.login.service.LoginServiceImp" />
	<dubbo:service interface="com.lidong.dubbo.api.login.service.ILoginService" ref="loginService" timeout="500000"/>
	<bean id="spittleService" class="com.lidong.dubbo.core.spittle.service.AlertSpittleServiceImp"></bean>
	<dubbo:service interface="com.lidong.dubbo.api.spittle.service.IAlertService" ref="spittleService" timeout="500000"/>
	<bean id="messageProducerService" class="com.lidong.dubbo.core.spittle.service.MessageProducerServiceImp"></bean>
    <dubbo:service interface="com.lidong.dubbo.api.spittle.service.IMessageProducer" ref="messageProducerService" timeout="500000"/>


	<bean id="workFlowService" class="com.lidong.dubbo.core.workflow.service.WorkFlowserviceImp"></bean>
	<dubbo:service interface="com.lidong.dubbo.api.workflow.service.IWorkFlowservice" ref="workFlowService" timeout="500000"/>

</beans>