Home > Rich Internet Applications > Flex, Spring and BlazeDS: the full stack! (Part 1)

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

April 10th, 2008

[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 and Enjoy:
  • description
  • Digg
  • del.icio.us
  • Slashdot
  • e-mail
  • Facebook
  • Google
  • blogmarks
  • Furl
  • StumbleUpon
  • Technorati
  • TwitThis
  • Reddit

Rich Internet Applications , , , , ,

  1. April 10th, 2008 at 14:07 | #1

    I just see it right now on google reader.

    Great start.

    VELO

  2. Marc
    April 10th, 2008 at 20:07 | #2

    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?

  3. baztheman
    June 24th, 2008 at 23:10 | #3

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

  4. June 24th, 2008 at 23:14 | #4
  5. June 27th, 2008 at 18:46 | #5

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

  6. Peder
    October 17th, 2008 at 20:34 | #6

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

  1. April 11th, 2008 at 22:05 | #1
  2. April 13th, 2008 at 19:06 | #2
  3. April 20th, 2008 at 12:24 | #3
  4. May 5th, 2008 at 18:54 | #4
  5. May 8th, 2008 at 20:20 | #5
  6. May 31st, 2008 at 22:40 | #6
  7. July 2nd, 2008 at 08:38 | #7
  8. December 12th, 2008 at 01:39 | #8