Spring 企业级开发应用---------burlap和spring的远程服务整合的应用
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?xsi:schemaLocation="http://java.sun.com/xml/ns/javaee<beans
?xmlns="http://www.springframework.org/schema/beans"
?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?xsi:schemaLocation="http://www.springframework.org/schema/beans<beans
?xmlns="http://www.springframework.org/schema/beans"
?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?xsi:schemaLocation="http://www.springframework.org/schema/beans?}
}
?
client.properties 属性配置文件
# Properties file with server URL settings for remote access.
# Applied by PropertyPlaceholderConfigurer from "clientContext.xml".
serverName=localhost
httpPort=8080
rmiPort=1099
serverPath=SpringBurlap
contextPath=remoting/Userservice-burlap
?
客户端spring配置
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?xsi:schemaLocation="http://www.springframework.org/schema/beans??</property>
?</bean>
?<bean id="proxyuserservice"
??class="org.springframework.remoting.caucho.BurlapProxyFactoryBean">
??<property name="serviceUrl">
???<value>
????http://${serverName}:${httpPort}/${serverPath}/${contextPath}
???</value>
??</property>
??<property name="serviceInterface">
???<value>cn.com.huawei.burlap.service.IUserService</value>
??</property>
?</bean>
</beans>