Download the Flex and Spring Integration Refcard

UPDATE: There is a new version of the Refcard available:
Flex 4, Hibernate 3, and Spring 3 Integration

DZone has just published a new Refcard “Flex & Spring Integration” written by Jon Rose and me. This is the second Refcard I’ve written. The first was “Very First Steps in Flex,” which was a few chapters from First Steps in Flex written by Bruce Eckel and me. Working on the Flex & Spring Integration Refcard was fun because I was able to learn more about the new Spring BlazeDS Integration project from SpringSource. I’ve been really impressed with how easy it is to integrate Flex and Spring together. Another great resource for learning how to integrate Flex and Spring is Christophe Coenraets’ Spring BlazeDS Integration Test Drive. It contains a bunch of great examples that will help you better understand how to get everything set up and working.

Let me know what you think about the Refcard. I hope it’s useful for you!

  • that’s awesome James :)

    did you know that Comtaste became Spring Authorised Partner in Italy ? We’ve started delivering and proposing official Spring courses in our country !

    Thanks for your timehope to talk to you soon,

  • Josef van Niekerk

    I’m trying out your refcard, but I keep on getting the following error: [RPC Fault faultString=”Send failed” faultCode=”Client.Error.MessageSend” faultDetail=”Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: ‘http://localhost:8080/blazeds/spring/messagebroker/amf'”]. After I imported the blazeds.war file, my project context was set to blazeds, so I only changed the context in the .mxml file. I’m able to access the main.swf via the browser on http://localhost:8080/blazeds/main.html, that works fine? When I paste http://localhost:8080/blazeds/spring/messagebroker/amf in my browser I get Tomcat telling me: 404 – Servlet Spring MVC Dispatcher Servlet is not available?

  • Josef van Niekerk

    Could we perhaps have the source code for the sample in a .zip, please?

  • Hi Josef,

    Thanks for reporting the problem. It appears the servlet isn’t loading. Are you getting any errors in Tomcat’s logs? The refcard was kinda based on Christophe’s test drive. Have you tried the test drive?


  • Josef van Niekerk

    Happy days! I’ve found the problem. Everything is working perfect. What I did was include all the libraries from the test drive, and problem fixed. Thanks for the Refcard once again!

  • duong thach

    i have configured BlazeDS 3.2 + Spring 3.0.0.M3(latest) + MySQL 5 –> working . Now i want to config Hibernate 3.3.2(latest) to work with them, can u help me

    • The refcard covers that. Are you having problems following it?

  • victor azuara

    i follow the redcardz #102 flex4 & spring 3 integration, it is great, thank you for share your knowledge, so i have a question, i tried to test in exnternal tomcat server, can you help me

    • What is the problem?

      • victor azuara

        i want to export the full project (server side and client side – flex project) in a war file to deploy in a production server with tomcat server, i tried but when try to check in the server i say a 404

        • That probably means there was a startup error. You need to check the Tomcat logs to see what happened.

  • Doku

    I have a problem when connect to BlazeDS, RDS server message: connection establishment timed out. I choose option “No password required”.

    • Make sure you’ve uncommented the RDS servlet in the web.xml file and restarted Tomcat.

  • Jacek

    I have imported complete project from zip, but when I try to make change in sourcecode, nothing happens. Old stuff is loading in the browser. What should I do?

    • The Flex code or the Java code?

      • Jacek

        Forgot to mention, my bad. Flex code. Problem solved anyway, had to update few paths in project and change locale parameter in Flex compiler tab in FB4. Everything works just perfect now;)

  • swetha

    I have un commented out RDS in web.xml.
    my tomcat is starting properly
    Jul 6, 2011 12:38:24 PM org.springframework.orm.hibernate3.HibernateTransactionManager afterPropertiesSet
    INFO: Using DataSource [org.springframework.jdbc.datasource.SimpleDriverDataSource@be0446] of Hibernate SessionFac
    Jul 6, 2011 12:38:24 PM org.springframework.flex.remoting.RemotingDestinationExporter createDestination
    INFO: Created remoting destination with id ‘masterTaskService’
    Jul 6, 2011 12:38:24 PM org.springframework.flex.remoting.RemotingDestinationExporter initializeDestination
    INFO: Remoting destination ‘masterTaskService’ has been started started successfully.
    Jul 6, 2011 12:38:24 PM org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization completed in 6625 ms
    Jul 6, 2011 12:38:25 PM org.springframework.web.servlet.FrameworkServlet initServletBean
    INFO: FrameworkServlet ‘flexspring’: initialization started
    Jul 6, 2011 12:38:25 PM prepareRefresh
    INFO: Refreshing WebApplicationContext for namespace ‘flexspring-servlet’: startup date [Wed Jul 06 12:38:25 IST 2
    Jul 6, 2011 12:38:25 PM preInstantiateSinglet
    INFO: Pre-instantiating singletons in
    Jul 6, 2011 12:38:25 PM org.springframework.web.servlet.FrameworkServlet initServletBean
    INFO: FrameworkServlet ‘flexspring’: initialization completed in 157 ms
    Jul 6, 2011 12:38:25 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8400
    Jul 6, 2011 12:38:25 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /
    Jul 6, 2011 12:38:25 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/110 config=null
    Jul 6, 2011 12:38:25 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 13402 ms