tags:

views:

290

answers:

1

Hi,

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:

<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

+1  A: 

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>
pablochan
This is correct. Check out my Refcard to see all the steps for setting up the Spring BlazeDS Integration: http://refcardz.dzone.com/refcardz/flex-spring-integration
James Ward