Chapter 11. Flex on Grails

 

This chapter covers

  • Integrating Flex with Groovy and Grails
  • Installing the Grails Flex Plugin
  • Exposing a Grails service to Flex
  • Integrating Flex with JMS

Not all real-world development is against an existing application. Every once in a while you have fun developing new code. What do you do when you want to rapidly prototype a data-driven application with Flex? With the Flex part it’s easy enough to develop a UI, but what about the backend? You could always develop a Java-based backend using the same methods and techniques we described throughout this book, or you could take advantage of another framework, such as Grails, to quickly get your data-driven backend off the ground.

11.1. Why Groovy and Grails?

Groovy has been affectionately called Java 2.0 by many in the Java world, so it should be no surprise that you can integrate with Groovy and Grails as easily—and in some aspects more easily—as in previous chapters.

11.2. Downloading and installing Grails

11.3. Creating the Grails application

11.4. Getting rich with Flex

11.5. Install the Grails JMS and ActiveMQ plugins

11.6. Add the ActiveMQ Spring bean

11.7. Subscribe the Flex client to the Grails JMS service

11.8. Summary