Spring+Rmi中的客户端自动重连配置

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN/EN"
  "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean id="xxx" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
        <property name="serviceUrl">
            <value>rmi://127.0.0.1:8199/xxx</value>
        </property>
        <property name="serviceInterface">
            <value>com.xxx.inter.xxxRmi</value>
        </property>
    <property name="refreshStubOnConnectFailure">
        <value>true</value>
      </property>
    </bean>
</beans>

原文地址:https://www.cnblogs.com/jokerpan/p/3811840.html