Bundled Flex requests

I have a Flex app that does a bunch of remoting calls to ColdFusion for data to populate some graphs. Even though the RemoteObject tags are in different components and get called separately by sequential lines of code, I noticed that they all returned at the same time, though I know some of them should have returned a lot faster. According to Service Capture, Flex 3 combines all the remoting calls into a single bundle. This makes me curious how Flex decides to combine the calls into a single bundle and more importantly, how do I tell Flex to NOT add a remoting call to a bundle.

Comments
"When multiple remoting calls are made close together, Flash actually bundles them into one request. "

More info here: http://www.communitymx.com/content/article.cfm?cid...

To solve your problem, you could:

1) create a Service Aggregator to return all of the services as one array of objects (that's what I always do).

For example, I usually define a "GetSystemInformation" command and delegate. Then I have a GetSystemInformation service, that calls "getCountries" from one service, and "getTodaysDate" from another service, and I return them as a struct/object.

2) Or, if you're working at a company where you have legacy services that are predefined and you can't aggregate the requests into 1, you can create a sequence of requests.

More info here: http://www.google.com/search?hl=en&q=cairngorm...
# Posted By david buhler | 11/14/07 12:43 PM
Nice, thanks David! Cairngorm is still beyond my abilities, unfortunately. I've started bundling all my initialization code into a single remoting call. One app requires I get about 7 lists to populate combo boxes and it's nice to get that back in a single neat package.
# Posted By Murloc Oracle | 11/19/07 1:09 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner