Can a Flex client app connect to BlazeDS running on a different server?

北慕城南 提交于 2019-12-11 07:17:16

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/2228679/can-a-flex-client-app-connect-to-blazeds-running-on-a-different-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!