You can call the remote object once but you can create different methods and get the result for each method in a different array.
I do coldfusion not AMF but it's the same concept.
Thanks Johnny, But I am calling 3 different Remote Object and each calling 3 different method.
All this 3 RO calls are batched into single AMF call and there is only one server call.
Thanks for reply,
So, you are calling one remote object with three different methods.
Can you show me your code?
What is the issue then? what are you trying to accomplish?
In my application, I have a page which contain 3 sections. Each section will display separate information.
So on load of the page im invoking 3 RO calls to backend system. I need all these 3 calls to be in parallel.
var service1:RemoteObject = ServiceLocator.getInstance().getRemoteObject("service1");
var token:AsyncToken = service1.getSection1();
var service2:RemoteObject = ServiceLocator.getInstance().getRemoteObject("service2");
var token:AsyncToken = service2.getSection2();
var service3:RemoteObject = ServiceLocator.getInstance().getRemoteObject("service3");
var token:AsyncToken = service3.getSection3();
I need all these 3 RO call create 3 different AMF(one for each Remote Message) request from client to server.
But now it is create only 1 AMF request contains 3 RemoteMessage and BlazeDS executing one after the other and creates one response(contain 3 results) and sends to client
Thanks a lot,