Hi friends,

I am trying to integrate an existing Spring MVC based custom framework with flex.
1) I have simply copied the XML configuration files from Jeremy's sample application and put them in WEB-INF/flex folder of my application.The only change I made is set the default channel in services-config.xml and remoting-config.xml to "my-secure-amf" since my server accepts only "https" requests.

2) I have "/spring/*" pointing to Dispatcherservlet.

3) As part of debugging I did try to manually give a GET request to "https://{server.name}:{server.port}/{context.root}/spring/messagebroker/amfsecure".The response was 200(OK).
As per my understanding I have configured the application properly.Correct me, if i am wrong.

4) My mxml file is pretty simple,
<mx:RemoteObject id="srv" destination="product"/>

<mxataGrid dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%"/>

<mx:Button label="Get Data" click="srv.getProducts()"/>

This is what I have configured in my Spring configuration file,
<bean id="mySpringManagedMessageBroker" class="org.springframework.flex.messaging.MessageB rokerFactoryBean" />
<bean id="productService" class="com.web.utility.Product"/>

<!-- Expose the productService bean for BlazeDS remoting -->
<bean id="product"
class="org.springframework.flex.messaging.remoting .FlexRemotingServiceExporter">
<property name="messageBroker" ref="mySpringManagedMessageBroker"/>
<property name="service" ref="productService"/>
</bean>

<bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<value>
/messagebroker/*=mySpringManagedMessageBroker
</value>
</property>
</bean>

<!-- Dispatches requests mapped to a MessageBroker -->
<bean class="org.springframework.flex.messaging.servlet. MessageBrokerHandlerAdapter"/>

5) I am using Ant to generate the SWF file.

6) When I give a request to the JSP(in which flex is embedded), I get a Flash player error pop-up displaying message
[RPC Fault faultString="[MessagingError message='Destination 'product' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'product'"]

Can anyone help me to solve this problem?