I put together a new Test Drive environment to allow you to explore the development of Flex 4 applications with a Java back-end using the new “Data-Centric Development” features of Flash Builder 4. These features include service introspection, value object and service stub generation, etc. This Test Drive is still work in progress: it currently consists of a single application called InSync (a complete Flex 4 rewrite of my contact management sample application), but I think it’s already valuable to understand the impact of the new Flash Builder 4 data features. Insync also demonstrates some of the new features of Flex 4: skinning, skinnable components, layout managers, etc.
Watch the video below to get familiar with the Test Drive environment and the sample application:
Installation Instructions
- Download flex-java-testdrive.zip, and unzip the file in your root directory.
- Open a Command Window or Shell, navigate to /flex-java-testdrive/tomcat/bin, and start Tomcat (for instance: catalina run).
- Open a browser and access http://localhost:8400/testdrive/InSync/InSync.html.
Importing the projects in Flash Builder 4
- In Flash Builder 4, click File > Import > General > Existing Projects into Workspace.
- Specify flex-java-testdrive/projects as the root directory and click finish.
- Explore the projects: InSync is the Flex project and java-testdrive is the Java project for the server-side classes.
In the InSync project, the classes in the services and valueObjects packages have been generated automatically by Flash Builder 4. My next blog post will show you how to generate these classes based on existing Java services deployed in BlazeDS.
NOTE: Because BlazeDS 4 hasn’t yet been released, this version of the Test Drive uses a nightly build of BlazeDS 4.
7 Comments
Could you demo on how to use RemoteObject on this example? thx
Hi Christophe,
Thanks for sharing this cool way to bind server side object with Flex componenet. Could the same DataGrid be linke to two different service operations base on clicking on different button?
thx
ex3108
I have my AS3 code generation working from BlazeDS spring beans but running into an issue and not sure if its a configuration issue or a limitation of the Data Services in Flash Builder. If my service returns an array of Shape(s) but Shape is the base class, really it can be a Circle or Square (i.e. simple polymorphism example coming). I found out how to get the Circle and Square to generate via the configure return type but that creates 3 classes which are not related to one another in any way.
Is this a limitation of Flash Builder data services?
(maybe this will be answered in another blog post later)
Mr. Coenraets:
Great Demo as usual. Can you please do a demo using the Annotation-based ORM framework approach?
Again, great job on the new demo.
Thanks,
Mickel
Thanks very much for the sample! The application runs great on my Mac except for the ability to turn on the camera and take a picture. When I try to turn the camera on, I get a request to allow and I approve it but the camera never actually turns on. The screen remains black. I can click on the take a picture icon and that makes a sound, but it doesn’t actually capture any image other than the black screen. Any thoughts?
Thanks,
John
cant follow the whole story…when i import those project i get errors and cant compile; anyway i am able to reach http://localhost:8400/testdrive/InSync/InSync.html.. the errors seems to be because of import flex.messaging.config.ConfigMap and another import… I cant reach the flex.messaging package …
What have to be configured to reach the flex classes with the java project?
Many wishes
…
Hii ,
Thanks for nice example , plz also put data base of this project , and why dont you put tomcat saprate , so that it can download fast.
Thanks
8 Trackbacks
[...] – Flex 4 Sample Application using a Java Back-End, BlazeDS 4 and Flash Builder 4 Data Wizards [...]
[...] Christophe Coenraets Rich Internet Applications, Flex, AIR, Java Skip to content BioUsing Flex with Spring « Flex 4 Sample Application using a Java Back-End, BlazeDS 4 and Flash Builder 4 Data Wizards [...]
[...] Flex 4 Sample Application using a Java Back-End, BlazeDS 4 and … [...]
[...] Flex 4 Sample Application using a Java Back-End, BlazeDS 4 and … [...]
[...] Flex 4 Sample Application using a Java Back-End, BlazeDS 4 and … [...]
[...] http://coenraets.org/blog/2010/03/flex-4-sample-application-using-a-java-back-end-blazeds-4-and-flas... [...]
[...] http://coenraets.org/blog/2010/03/flex-4-sample-application-using-a-java-back-end-blazeds-4-and-flas... [...]
[...] Christophe Coenraets: I have blogged about the new data-centric features in Flash Builder 4 here and here. One question people often ask me is: “Can I use this feature if I use a Framework [...]