Epseelon
Software for People
  • email
  • facebook
  • twitter
  • linkedin
  • Contact
  • My personal blog
  • Looking Forward
  • Blockchain Awareness
Select Page ...

Blog

Flex, Spring and BlazeDS: the full stack! (Part 1)

Sebastien April 10, 2008 Export, Rich Internet Applications 19 Comments

[UPDATE 2] If you are still having version issues with the sample application featured in this article, you can get a fully upgraded version here

[UPDATE] This article series has been reedited on the Adobe Developer Connection. For more information, see this post.

In this article series, I’ll try to give you a step-by-step process to create an application with Flex/BlazeDS/Spring/Hibernate/MySQL architecture, all of that built with Maven. I’ve been looking for such a tutorial for a long time, but you know what Gandhi said about the change you wish to see in the world, right? So I finally put all the parts together, and with a little help from a Brazilian friend, tadaaaa! Here it comes!

But before we dive in to the hard stuff, just a few words of caution:

  1. The project that we are going to build in this tutorial is by no means perfect, especially in terms of Maven configuration. So if you have suggestions to improve it, they’ll be warmly welcome.
  2. One of the main ingredients of this project, one without which nothing would have been possible, is the flex-compiler-mojo from Velo. There are other Flex building Maven plugins out there, but at the time of this writing, none of them offers enough configuration options to build this project. On the other hand, Velo’s plugin is still in alpha, so… Anyway, if like me you are convinced that Adobe’s official Maven support is necessary, feel free to vote for this issue.

Enough blah-blah, let’s move on to the real thing. Ready to get nasty?

Where are we going?

The objective of this tutorial is to build a todo-list application that allows you to create, modify, delete and list todo items in a Flex UI. Here is the global architecture we will implement:

The Maven build is what is really tricky. Because of course, with Ant, you can do anything, but I hate writing Ant scripts, and I guess I’m not alone. As for using my IDE to build projects, I hate to depend on that, because any serious project needs some degree of testing and continuous integration. So even though Maven is not perfect, I still see it as the least bad solution.

As for JBoss, it’s not a requirement at all, it’s just what I’m using, but you could perfectly use a simple Tomcat.

Last but not least, if you want to see the end result of this tutorial, I’ve set up a demo here.

That’s it for this first episode. In the next one, will Luke understand that he can’t leave a gorgeous woman such as Lorelei? Sorry… I’m out..

Share this:

  • Print
  • Email
  • Facebook
  • Twitter
  • Google
  • LinkedIn
  • Reddit

Related

← My thoughts about OSGi on JavaWorld
Flex, Spring and BlazeDS: the full stack! (Part 2) →
Sebastien

19 Responses to Flex, Spring and BlazeDS: the full stack! (Part 1)

  • VELO
    4 / 10 / 2008

    I just see it right now on google reader.

    Great start.

    VELO

    VELO 4 / 10 / 2008
    Reply
  • Marc
    4 / 10 / 2008

    i can’t wait to see this! when do you plan to release the next episode about the adventures of luke and lorelei in java&mojo country?

    Marc 4 / 10 / 2008
    Reply
  • Flex, Spring and BlazeDS: the full stack! (Part 2)
    4 / 11 / 2008

    […] Flex, Spring and BlazeDS: the full stack! (Part 1) […]

    Flex, Spring and BlazeDS: the full stack! (Part 2) 4 / 11 / 2008
    Reply
  • Daily del.icio.us for April 12th through April 13th — Vinny Carpenter’s blog
    4 / 13 / 2008

    […] Flex, Spring and BlazeDS: the full stack! (Part 1) – In this article series, I’ll try to give you a step-by-step process to create an application with Flex/BlazeDS/Spring/Hibernate/MySQL architecture, all of that built with Maven. […]

    Daily del.icio.us for April 12th through April 13th — Vinny Carpenter’s blog 4 / 13 / 2008
    Reply
  • Flex, Spring and BlazeDS: the full stack! (Epilogue)
    4 / 20 / 2008

    […] Me Flex, Spring and BlazeDS: the full stack! (Part 1) Flex, Spring and BlazeDS: the full stack! (Part 3) Apr […]

    Flex, Spring and BlazeDS: the full stack! (Epilogue) 4 / 20 / 2008
    Reply
  • Blog Xebia France - Revue de Presse Xebia
    5 / 5 / 2008

    […] Flex, Spring and BlazeDS: the full stack! (Part 1) […]

    Blog Xebia France - Revue de Presse Xebia 5 / 5 / 2008
    Reply
  • [davidchiu ~]$ - Adobe Flex/AIR Research Links
    5 / 8 / 2008

    […] Flex, Spring and BlazeDS: the full stack! (Part 1) […]

    [davidchiu ~]$ - Adobe Flex/AIR Research Links 5 / 8 / 2008
    Reply
  • Open Business is Good For You
    5 / 31 / 2008

    […] tutorial I recently published on this blog about Flex, Spring and BlazeDS was really successful and […]

    Open Business is Good For You 5 / 31 / 2008
    Reply
  • baztheman
    6 / 24 / 2008

    I think your website http://epseelon.com:8080/todolist/ is down…

    baztheman 6 / 24 / 2008
    Reply
  • Sébastien
    6 / 24 / 2008

    Sorry, try http://epseelon.com:8080/todolist-web/

    Sébastien 6 / 24 / 2008
    Reply
  • Eduardo Burgos
    6 / 27 / 2008

    You just said maven is not perfect. Why did you say that? 🙁

    Eduardo Burgos 6 / 27 / 2008
    Reply
  • Flex Supports Spring - Are You Ready to Skip Web 2.0? at Springsteam - Next Generation Java Development | Spring . Flex/AIR . 3D
    7 / 2 / 2008

    […] using Hibernate, MySQL and a Maven build (2, 3rd part is still not published; Original series: 1, 2, 3, 4, 5) Bookmark to: Tags: AJAX, […]

    Flex Supports Spring - Are You Ready to Skip Web 2.0? at Springsteam - Next Generation Java Development | Spring . Flex/AIR . 3D 7 / 2 / 2008
    Reply
  • Peder
    10 / 17 / 2008

    Great stuff, thanks. Now swap out MySQL with PostgreSQL and JBoss with Glassfish, and you’d have the perfect stack. 😉

    Peder 10 / 17 / 2008
    Reply
  • Le Touilleur Express » Devoxx : Flex, Flash 10 and the Enterprise
    12 / 12 / 2008

    […] autour de Flex. Et il se propose de faire une démonstration en live. (au passage je vous conseille cet article de Sébastien […]

    Le Touilleur Express » Devoxx : Flex, Flash 10 and the Enterprise 12 / 12 / 2008
    Reply
  • mattlf
    1 / 8 / 2009

    I am a little bit lost as how to upgrade blazeDS

    If I go to Sebastien Arbogast’s maven repository

    for example:

    http://m2repo.epseelon.org/com/adobe/blazeds/blazeds-core/3.0.0.544/

    I see blazeds-core-3.0.0.544.jar

    If i want to get the latest release jar files from the adobe web
    site …I can’t find them…I only find a war

    http://opensource.adobe.com/wiki/display/blazeds/Downloads

    But the war says that BlazeDS is now version 3.2.0.3978

    I would appreciate some help as where to find the latest blazeDS jar
    so that I can have them in a maven repository

    Thank you!

    mattlf 1 / 8 / 2009
    Reply
  • Bens Blog » Flex/Java links
    2 / 24 / 2009

    […] Flex BlazeDS Hibernate and Maven […]

    Bens Blog » Flex/Java links 2 / 24 / 2009
    Reply
  • car floor jacks
    3 / 14 / 2009

    This is the first time I comment here and I must say you give genuine, and quality information for bloggers! Great job.
    p.s. You have an awesome template . Where have you got it from?

    car floor jacks 3 / 14 / 2009
    Reply
  • byte bohemian » Blog Archive » Mavenizing a Flex build
    3 / 21 / 2009

    […] the web application with the HTML and the BlazeDS services. Took me some time and a quite nice tutorial from Sébastien Arbogast but finally it […]

    byte bohemian » Blog Archive » Mavenizing a Flex build 3 / 21 / 2009
    Reply
  • JavaPins
    3 / 5 / 2012

    Flex, Spring and BlazeDS: the full stack! (Part 1) | Epseelon…

    Thank you for submitting this cool story – Trackback from JavaPins…

    JavaPins 3 / 5 / 2012
    Reply

Leave a Reply to Flex Supports Spring - Are You Ready to Skip Web 2.0? at Springsteam - Next Generation Java Development | Spring . Flex/AIR . 3D Cancel reply

    • Copyright © 2013 Epseelon sprl. All Rights Reserved
      loading Cancel
      Post was not sent - check your email addresses!
      Email check failed, please try again
      Sorry, your blog cannot share posts by email.