All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.motan.xml Maven / Gradle / Ivy

The newest version!
<?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:motan="http://api.weibo.com/schema/motan"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
   http://api.weibo.com/schema/motan
   http://api.weibo.com/schema/motan.xsd">

	<!-- 注册中心的配置 -->
	<motan:registry regProtocol="${rpc.type}" name="rpc_registry"
		address="${rpc.address}" connectTimeout="${rpc.connect.timeout}" />

	<!-- 协议配置。为防止多个业务配置冲突,推荐使用id表示具体协议。 -->
	<motan:protocol id="motan" name="motan" default="true"
		requestTimeout="${rpc.request.timeout}" maxServerConnection="80000"
		maxContentLength="1048576" maxWorkerThread="${rpc.protocol.maxThread}"
		minWorkerThread="${rpc.protocol.minThread}" />
	<!-- 服务的默认配置 -->
	<motan:basicService id="motanServiceBasicConfig"
		shareChannel="true" registry="rpc_registry" export="motan:${rpc.protocol.port}" />
	<!-- 注解服务端要暴露的服务接口 -->
	<motan:annotation />
	<!-- 通用referer基础配置 -->
	<motan:basicReferer id="motanClientBasicConfig"
		registry="rpc_registry" protocol="motan" throwException="false"
		retries="${rpc.consumer.retries}" check="true" />
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy