1、下载第三方组件flex_spring,将SpringFactory类添加到项目中。
2、在services-config.xml文件中添加以下配置信息:
<factories>
<factory id="spring" class="com.cjm.flex.SpringFactory"/>
</factories>
3、配置bean对象
<bean id="remoteObject" class="com.cjm.flex.RemoteObject"/>
4、在remoting-config.xml文件中添加以下配置信息:
<!-- 服务接收点 --> <destination id="remoteObjectService"> <properties> <factory>spring</factory> <source>remoteObject</source> </properties> </destination>
接收点属性中的factory节点值 等于 services-config.xml文件中factory的id值。
接收点属性中的source节点值 等于 bean的id值。