views:

257

answers:

2

As far as In understand the Flex technology, a Flex client connects to a Flex server to retrieve business information. Is this the only allowed connection for the client, back to the originating server? Or can a Flex client also open a secondary connection to a different server wich runs BlazeDS for message exchange? (This might offer an option for load balancing and cross-platform development).

Update: thanks for the answer! I have found this page which links to the Cross-domain policy file specification:

http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

A: 

Yes, a Flex client can connection to a variety of servers, including BlazeDS. What could prevent a client from conenctiong to a BlazeDS server is the crossdomain.xml, which is a connection policy document hosted on the server.

I've got one concern about your question, and that is using the term 'Flex server'. That was something folks talked about with Flex 1, circa 2005! Adobe is now on Flex 4, and some relevant server technologies/platforms/software/protocols of interest are BlazeDS, Red5, FMS LiveCycle Data Services, JSON, AMF3, etc.

Stu Thompson
Thanks for the pointer to crossdomain.xml. However, I found information at http://kb2.adobe.com/cps/142/tn_14213.html which says that it is not possible to connect to two servers on different domains.
mjustin
@mjustin: Please re-read that link. The subject is much more complex, there are options. Also note that article is old--It is referencing Flash 7! The devil is in the details, it can be done, many folks are doing it.
Stu Thompson
Thank you for your hint, see my update - accepted your answer
mjustin
A: 

If BlazeDS is your main server side endpoint and your primary goal is load balancing then you may want to explore the clustering capabilities of BlazeDS -- http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=services_clustering_1.html.

Shashank Tiwari