- HttpInvokerService方法的发布
<bean id="purviewServices" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service"> <bean class="com.ivyinfo.purview.services.PurviewServicesImpl" /> </property> <property name="serviceInterface" value="com.ivyinfo.purview.services.PurviewServices" /> </bean>
两个属性:一个service的实现类,一个serviceinterface的接口类。发布了purviewServices方法。
- 这篇文章解释了InvohttpkerService
http://victor-jan.iteye.com/blog/823550 - http://study-frame-spring-ui.googlecode.com/svn/trunk/ 目录下需要check out 的四个项目

- 项目间依赖关系
TouchRemoting是 定义 InvohttpkerService的地方
WebTouch_v2 是调用 InvohttpkerService的web项目。
另外两个项目是供TouchRemoting使用的类似于jar包
- 先部署TouchRemoting项目

- 启动正常结果

右上角生发布了 3个 service方法。
本文介绍了如何使用Spring的HttpInvokerServiceExporter组件发布远程服务。通过配置实现类和服务接口,成功发布purviewServices方法。文中还提供了相关项目的部署步骤及依赖关系。

被折叠的 条评论
为什么被折叠?



