Integrating Flex and Java EE with JBoss

Flex and Java have always fit together very nicely. Connecting from Flex to a Java back-end is pretty straightforward whether you are using plain old Java beans, Spring beans, or EJB session beans. I’ve created a video and some sample code that shows you how to connect Flex to a Java EE system using BlazeDS. This video walks though a real-time collaborative Whiteboard application that runs in the browser, on the desktop, and on mobile devices. Check out the video and let me know what you think.

This entry was posted in Flex, Java, JBoss and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Hamidreza

    Hey James,

    This is awesome but I couldn’t see any file for downloading the sample code on that area!

    • http://www.jamesward.com James Ward

      You’ll have to check it out from SVN.

      • Hamidreza

        Yes I got it thanks.

        I love JBoss and Hibernate and integrating them with Flex as presentation layer will be pleasure.

  • http://code.google.com/p/gwt4air/ Ekambi Alain

    Hello there,

    I m Alain a software developer from Munich. I m currently working on a solution that i think will make it even more easier to integrate FLEX With Java. It s a Java API for FLEX. A demo application can be found here :http://www.gwt4air.appspot.com. This is a flex application entirely written in Java. Any inputs will be very welcome.
    Cheers,
    Alain

  • Benyamin

    Hey James,

    Is there anyway to monitor upload progress when you are passing bytearray from flex side to the java remote object via BlazeDS rather than http method with jsp or servlet?

    • http://www.jamesward.com James Ward

      Good question. I don’t think there is a progress event on NetConnection (the networking library underneath RemoteObject). So I don’t know of a way to do this. Sorry.

  • Fredy

    Hi James,

    I’m trying to reproduce your sample but I don’t know how to reproduce your development enviroment.
    I downloaded the Jboss 4.2.2, putted the EAR inside the deploy folder and then WAR inside the EAR.
    I’m used to build projects just with WAR and w/o EAR and EJB, can you lead me to make this sample got running?

    Regards,

    Fredy.

    • http://www.jamesward.com James Ward

      If you have the Java EE version of Eclipse then you should just be able to import all of the projects in. I have JBoss Tools installed in Eclipse which makes it a bit easier to then deploy the EAR to JBoss.

  • Amey Pednekar

     Hello James we are developing P2p whiteboard sharing application we already have sent you e mail. We just need to consult with you for our further development.

    Will you please help us ?

    reagads

  • Marcel

    Hi,

    can you show how i can connect FlexMonkey on this app?

    best regards

  • Thomas Yap

    Hi James, In the JPA , Is database needed? Do I need to create one to run your example?

    • http://www.jamesward.com James Ward

      By default this uses an in-memory database and the tables are auto-created.

      • Thomas Yap

        Thanks James ^^

  • Thomas Yap

    Hey James, Do you know any references or tutorial for beginners on how to build up the Java backend just like your example that includes Ear, Ejb, Jpa and also War? Because I really interested to learn it from the beginning, I will be very appreciate from that. Thanks and best regards. :)