这是org.springframework.flex-1.0.3.RELEASE.jar下载,一个简单的Flex+Spring开发环境需要很多环境上的配置,但是,这些配置基本上都是一次性的,也就是说,您这次配置成功了,下次还可以使用相同的配置。您可以将需要的jar包放在一个单独的目录中,当下次使用时直接拷贝过去即可。
org.springframework.flex-1.0.3.RELEASE.jar是普通Java Web工程流行使用ssh框架,而当前台使用Flex制作的时候,后台就不需要用Struts了,通过使用BlazeDS远程方法调用即可。
org.springframework.flex-1.0.3.RELEASE.jar随后,导入Jar包,flex相关的jar包在添加Flex项目的时候已经导入,这里主要是导入Spring和Hibernate相关 的jar包以及spring和flex集成的jar包,我用的是spring 3.0.3和hibernate 3.2.1。
第一种:
<bean id="productService" class="flex.samples.product.ProductServiceImpl" />
<flex:remoting-destination ref="productService" />
第二种:
<bean id="productService" class="flex.samples.product.ProductServiceImpl" >
<flex:remoting-destination />
</bean>
第三种:
<bean id="product" class="org.springframework.flex.remoting.RemotingDestinationExporter">
<property name="messageBroker" ref="_messageBroker"/>
<property name="service" ref="productService"/>
<property name="serviceId" value="productService"/>
<property name="includeMethods" value="read, update"/>
<property name="excludeMethods" value="create, delete"/>
<property name