Hi, I am trying to find out why this remote object does not return successfully using Cairngorm. I can use the same remote object in an application just by itself. The remote object invokes a CFC method and populates a datagrid just fine, but when I am trying to use a delegate to call this service, it is not working. It works for an HTTPService, but not remote object.
Below is my Services.xml files <?xml version="1.0" encoding="utf-8"?> <cairngorm:ServiceLocator xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns:cairngorm="com.adobe.cairngorm.business.*"> <mx:RemoteObject id=" loginUserService" destination="ColdFusion" source="myApp.cf.com.countries" showBusyCursor="true" > <mx:method name="getCountries" /> </mx:RemoteObject> </cairngorm:ServiceLocator> Here is the delegate: package com.adobe.myApp.business { import mx.rpc.AsyncToken; import mx.rpc.IResponder; import com.adobe.cairngorm.business.ServiceLocator; import mx.controls.Alert; public class LoginUserDelegate { private var command : IResponder; private var service : Object; public function LoginUserDelegate( command : IResponder ) { this.service = ServiceLocator.getInstance().getService( 'loginUserService' ); this.command = command; } public function loginUserServices() : void { // call the service var token:AsyncToken = service.send(); // notify this command when the service call completes token.addResponder( command ); } } }