New daoFlex release 0.11:Data Synchronization via Flex Remoting

As a tribute to MAX2006, we have uploaded the latest release of our open-source daoFlex code generator and library.

What’s cool in this release? We now support complete data synchronization via Flex Remoting. Here is how: we’ve created a ActionScript class DataCollection that descends from ArrayCollection, but it is “destination-aware” and has its own methods fill() and sync(). DataCollection knows how many elements have been modified, created, deleted, etc. and can manipulate them freely.

ActionScript class BatchService allows sending updates done to multiple DataCollections in our batch. We wrote a small BatchGateway destination which applies such batch as a unit of work (JTA transaction). More, you can batch arbitrary remote calls, say invoking a stored procedure in the same transaction. And watch this: you can do this without writing a single line in Java, except defining annotated abstract classes.

So now you can use Flex Remoting for your data synchronization with back-end on par with Flex Data Services. These technologies are complementary to each other. Use Flex Data Services when you need the server push and pagination. For all other use cases Remoting is sufficient. Classes generated by daoFlex are universal for either solution. You take the side, we will supply the ammo :)

If you are in Vegas this week, I’ll be showing it in action at MAXUP.

Victor Rasputnis

6 thoughts on “New daoFlex release 0.11:Data Synchronization via Flex Remoting

  1. Hi,

    It looks terrific!
    I downloaded this and try to run the example, but found some issues with following sections in \docs\setup.html document:

    3. Setup web application context “theriabook”
    download “delta” zip links are broken, neither JRun4 nor Tomcat5.5 works

    8.2 Copy _build.xml as build.xml,
    jrun_build.xml and tomcat_build.xml seem to be the same, both are for jrun

    Thanks

  2. Hi Victor,
    I was able to download those delta zip files for jrun and tomcat5.5.
    But I still cannot build from build.xml due to errors, and I believe the cause is the parameter of the stored procedure, sp_get_employee(); 1. Unknown empId, 2.SQL expects two parameters. The same errors are reported in both jrun and tomcat cases…

  3. Dong,
    The download prior to 10/27/06 had typo in the body of the sample stored procedure: emId instead of em_p_Id (missed “p”). Please download the the latest daoFlex.zip. There is mysql_backup\test.sql within, it contains corrected definition of the stored procedure.

    Victor

  4. Tried the latest version (I didnt create test database – is this required?)
    C:\DaoFlex\octopus\build.xml:78: No source files and no packages have been specifie
    d.
    at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1546)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

    Total time: 1 second

Comments are closed.