首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring 企业级开发运用-burlap和spring的远程服务整合的应用

2012-11-09 
Spring 企业级开发应用---------burlap和spring的远程服务整合的应用web-app version2.5 xmlnshttp:

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>

热点排行