开发者

Spring + Flex + BlazeDs configuration

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜