(XF - 8)Flex + Spring

1:首先要有个Flex的web项目这里就不说了
2:在src下添加两个java文件在附件里,包名该一下
3:在WEB-INF下flex文件下的services-config.xml中添加
<factories>  
       <factory id="spring" class="SpringFlexFactory的类路径" />  
    </factories> 
4:在WEB-INF下创建一个applicationContext.xml文件
   把随便一个Sping bean的配置文件copy过来改一下名字
   这个文件下配置自己的bean
备注:与src下配置的bean一致,也可以直接引用src下的配置文件
5:在WEB-INF下flex文件下remoting-config.xml下配置自己的remoteObject
   如<destination id="olapService">
<properties>
<factory>spring</factory>  
        <source>olapService</source>  
        <scope>session</scope>  
</properties>
</destination>
olapService是spring中配置的ben id

前提:在web.xml中添加了flex和spring的监听

你可能感兴趣的:(spring,bean,xml,Web,Flex)