Flex code to consume BlazeDS Remoting service and configuration to expose Java class as Remoting service is same for all destinations, except for the change in the Java class name.
Creating a AS3 equivalent class for Java beans is done manually.
Testing a Remoting service exposed is achieved by writing Flex code, a simple tool could be used to invoke any Remoting service and view the response.
Solution
This application helps developers to generate Flex code to consume BlazeDS Remoting services and also generate configuration file to expose Java classes as Remoting services. Developers can view response from a Remoting service, generate Flex code to invoke a Remoting service and also generate AS3 VO code for the Java classes.
Invoking a Remoting destination requires configuring the destination and compiling services-config.xml with Flex application. At times you might have to manipulate the URL to the BlazeDS server runtime or for some reason don’t want to configure in the services-config.xml and just provide the URL to the RemoteObject component.
Invoking an operation of a RemoteObject component at times dispatches FaultEvent with message saying destination either does not exist or has no channels defined.
Solution
When you get this error message, try the following steps in the explanation.
When there are many remote operations calls, it takes long time to receive the responses.
Solution
You can actually use multiple duplicated remote objects to reduce the average response time. Think each remote object as a thread, so the more threads you have the quicker the work gets done.
Flash player has cross-domain security policy that restricts Flex applications from retrieving data from remote third party servers. Unfortunately, certain sites have restrictive polices, or no cross-domain policy at all, making it impossible for Flex clients hosted on other domains to access their service.
Solution
LiveCycle Data Services ES, or its open source variant, BlazeDS, offer proxy service that could help Flex clients bypass the cross-domain restriction.
I would like to extract data from my Flex application to a CSV file for loading into Excel. However, the current Flash player does not allow direct access to the client computer in order to save data from a Flex application.
Solution
With the help of BlazeDS, Java and JSP, I can get around this limitation.
Flex code to consume BlazeDS Remoting service and configuration to expose Java class as Remoting service is same for all destinations, except for the change in the Java class name.
Creating a AS3 equivalent class for Java beans is done manually.
Testing a Remoting service exposed is achieved by writing Flex code, a simple tool could be used to invoke any Remoting service and view the response.
Solution
This application helps developers to generate Flex code to consume BlazeDS Remoting services and also generate configuration file to expose Java classes as Remoting services. Developers can view response from a Remoting service, generate Flex code to invoke a Remoting service and also generate AS3 VO code for the Java classes.
You want to use Spring and Hibernate with BlazeDS.
Solution
This cookbook entry describes how you can update the store/inventory management example from Christophe Coenraets article Using BlazeDS with Spring with ORM data access with Hibernate.
This site is produced in partnership with
O'Reilly.