這是org.springframework.flex-1.0.3.RELEASE.jar下載,一個簡單的Flex+Spring開發(fā)環(huán)境需要很多環(huán)境上的配置,但是,這些配置基本上都是一次性的,也就是說,您這次配置成功了,下次還可以使用相同的配置。您可以將需要的jar包放在一個單獨的目錄中,當(dāng)下次使用時直接拷貝過去即可。
org.springframework.flex-1.0.3.RELEASE.jar是普通Java Web工程流行使用ssh框架,而當(dāng)前臺使用Flex制作的時候,后臺就不需要用Struts了,通過使用BlazeDS遠(yuǎn)程方法調(diào)用即可。
org.springframework.flex-1.0.3.RELEASE.jar隨后,導(dǎo)入Jar包,flex相關(guān)的jar包在添加Flex項目的時候已經(jīng)導(dǎo)入,這里主要是導(dǎo)入Spring和Hibernate相關(guān) 的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