For Flex's learning personal feelings mainly in two aspects, one is the Flex rich tag library, can easily construct a rich user interface; on the other hand, it is to learn how Flex as a web app's performance layer and multi-layer applications Other grassroots are communicating.
Flex Call JavaBean in Server JVM is initially:
Background: Flex can use Data Service with three ways: First, the refict service, the third is http service, the web service only knows the approximate, no deployment, HTTP Service feels in a general three-layer application There are not many, just study Remote Object Service. Remote Object Service is white, which is the interaction of Flex and server-side General Java objects, which may be Pojo (Plain Old Java Object) or JavaBean et al. Any object that is not deployed as a Web Service.
Tag: Use Remote Java Object in Flex to identify the REMOTEOBJECT to be used to identify the REMOTEOBJECT to be divided into two types, named and unnamed, the difference between the two distinguishment is
Call: The communication of Flex and Java Object is to call the Java object, which involves how the parameters are transmitted. There are two ways to transfer the function transfer parameters of the Java object in Flex: 1. Explicit parameter passes is to write the parameter list of the function like usually written Java code, see an example: XML Version = "1.0" Encoding = "UTF-8"?>
The last step: This is written, it is running, but there is still a point to configure the following, it is necessary to configure the flex-config.xml in the ../web-inf/flex configuration WE STRONGLY Recommend NOT ALOWING Access To All Source Files in Production, Since this Exposes Java and flex system classes. Run: After entering the input box, click OK to see the MSG that came from the Tomcat terminal is output. Another type of parameter: In addition to the above explicit-centers, it is also possible to use the argument binding method: RemoteObject tag on the above MXML code to be changed: