这是org.springframework.flex-1.0.3.RELEASE.jar下载,一(yī)个简单的Flex+Spring开发环境需要很多环(huán)境上的配(pèi)置(zhì),但是,这(zhè)些配置基本上都(dōu)是一(yī)次性的,也(yě)就(jiù)是说,您(nín)这次配置成功了,下(xià)次还可以使用相同的(de)配置。您可以将需(xū)要的(de)jar包放在一个单独(dú)的(de)目录中,当下次使用时直接(jiē)拷贝(bèi)过去即可(kě)。
org.springframework.flex-1.0.3.RELEASE.jar是普通Java Web工程流行(háng)使用ssh框架,而当前(qián)台使用(yòng)Flex制作的(de)时候,后台就不(bú)需要用(yòng)Struts了(le),通过使(shǐ)用BlazeDS远程方法调用即可。
org.springframework.flex-1.0.3.RELEASE.jar随后,导入Jar包(bāo),flex相关的jar包在添加(jiā)Flex项目的时候已经导入,这里主要是(shì)导入Spring和Hibernate相(xiàng)关 的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" />
第(dì)二种:
<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
