Integrating Flex with JBoss Seam

Felipe and I presented yesterday at SiIvafug on how to integrate Adobe Flex with Java using JBoss Seam & Exadel Flamingo. We showed how to quickly generate a Seam Project using seam-gen and then how to build a simple flex app to communicate with the backend. All the gluing between Seam and Flex was done using Flamingo, a great alternative to BlazeDS when integrating with Seam.

You can check out the project demonstrated during the presentation here. The project shows how to effectively use WebRemoting, RemoteObjects, SeamBinding and SeamValidators (automatically validate flex fields based on database rules).

Steps that you need to follow in order to run the project:

  • unzip the demo
  • drop the unzipped folder in your Eclipse workspace
  • open Eclipse and create a new general project called silvafug (this will load up the demo on Eclipse)
  • download JBoss 4.2.2 and start the server
  • open build.properties (inside silvafug project) and change jboss.home property to point to your jboss installation directory
  • deploy the project ( Eclipse -> run -> External Tools -> Open External Tools Dialog -> new Ant builder -> set Buildfile to build.xml -> run)
  • point your browser to http://localhost:8080/silvafug to get the generic home page or to http://localhost8080/silvafug/flex/silvafug.html to get the flex application

I’ll cover the main points from the presentation in more detail over the next days.

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment