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