I have a similar issue here. I have configured the server as suggested. But, when i make a call from the client i get the following error:
Code:
message='Destination 'loginService' either does not exist or the destination has no channels defined
remoting-service
Code:
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
</service>
services-config.xml
Code:
<channels>
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http : / / {server.name}:{server.port}/{context.root}/spring/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
Spring beans
Code:
<bean id="loginServiceController" class="org.phoenix.core.LoginService" />
<bean id="loginService" class="org.springframework.flex.messaging.remoting.FlexRemotingServiceExporter">
<property name="service" ref="loginServiceController"/>
<property name="messageBroker" ref="messageBrokerFactory"/>
</bean>
What am i missing?