开发者

Spring + Flex + BlazeDs configuration

开发者 https://www.devze.com 2022-12-21 04:15 出处:网络
How Flex knows to call the particular service in Spring framework. I give in Flex side: <mx:remoteObject id=\"myObj\" destination=\"mySpringservice\"/>

How Flex knows to call the particular service in Spring framework.

I give in Flex side:

<mx:remoteObject id="myObj" destination="mySpringservice"/>

And remote-config.xml file:

开发者_C百科
<destination id="mySpringservice">
    <properties>
        <factory>spring</factory>
        <source>mySpring</source>
    </properties>
</destination>

And how server knows to the particular flex remote object calls to particular spring service. any thing need to configure in service-config.xml file?

Thanks, Ravi


I' don't know about your config but if you use Spring BlazeDS Integration you don't need to configure destinations in the remote-config. Instead of that you can make a spring bean to be a destination in the spring config file like this

<bean id="myService" class="package.MyService">
    ...
    <flex:remoting-destination />
</bean>
0

精彩评论

暂无评论...
验证码 换一张
取 消