The following mxml code works fine, therefore everything on
the server is configured correctly:
<mx:RemoteObject id="srv" showBusyCursor="true" endpoint="
http://10.20.30.40:8080/ia/graniteamf/amf"destination="pojo" />
When I try this in actionscript:
var channelSet:ChannelSet = new ChannelSet() ;
var channel:AMFChannel = new AMFChannel( "pojo", "
http://10.20.30.40:8080/ia/graniteamf/amf");
channelSet.addChannel( channel );
employeeRO = new RemoteObject( );
employeeRO.channelSet = channelSet;
employeeRO.destination = "pojo";
employeeRO.getLastError.addEventListener("result",getListResultHandler);
employeeRO.addEventListener( "fault", faultHandler) ;
employeeRO.getLastError();
I am always getting:
[MessagingError message='Unknown destination 'pojo'.']
What am I missing ?