Flex on Java
Bernerd Allmon and Jeremy Anderson
  • October 2010
  • ISBN 9781933988795
  • 264 pages
  • printed in black & white

Teaches a holistic approach to building great software.

From the Foreword by James Ward, Flex Evangelist at Adobe

Together, Flex and Java make a powerful web development platform—they blend the strengths of Java on the server with the richness of Flex on the frontend. Flex on Java is a unique book that teaches you how to work with Flex in concert with the full array of Java technologies: Spring, POJOs, JMS, and other standard tools. You also learn how to integrate Flex with server-side Java via BlazeDS remoting. Almost all the carefully annotated examples use free or open source software.

Table of Contents show full




about this book

author online

about the authors

about the cover illustration

Part 1 Laying the foundation

1. Chapter 1 Some Flex with your Java?

1.1. A whirlwind tour of Flex

1.2. Creating an application in Flex

1.3. Finding the right tools and patterns

1.4. Summary

2. Chapter 2 Beginning with Java

2.1. Working with AppFuse

2.2. Generating the application structure with Maven

2.3. Build the model objects

2.4. Build the DAOs

2.5. Build the services

2.6. Wiring things together with Spring

2.7. Constructing the web tier

2.8. Summary

3. Chapter 3 Getting rich with Flex

3.1. Generating the application structure

3.2. Configuring the flex-bugs-ria module

3.3. Configure Maven for the flex-bugs-web module

3.4. Adding a wrapper for our SWF

3.5. “Hello World!” in Flex

3.6. Developing the FlexBugs application

3.7. Laying out the components

3.8. Creating a pop-up component

3.9. The finished application

3.10. Summary

4. Chapter 4 Connecting to web services

4.1. Model View Presenter

4.2. Web services in Flex

4.3. Dispatching and handling events

4.4. Creating Issue and Comment transfer objects

4.5. Enhancing the master view

4.6. Enhancing the detail view

4.7. Enhancing the comments view

4.8. Adding a pop-up form for editing comments

4.9. Summary

Part 2 BlazeDS remoting

5. Chapter 5 BlazeDS remoting and logging

5.1. Introducing BlazeDS

5.2. Getting BlazeDS

5.3. Building a BlazeDS configuration Maven module

5.4. Exposing Java services to Flex remoting

5.5. Connecting to Java with BlazeDS

5.6. Logging

5.7. Summary

6. Chapter 6 Flex messaging

6.1. Setting up BlazeDS for messaging

6.2. Modifying the client for messaging

6.3. Summary

Part 3 The joys of Flex on Java

7. Chapter 7 Securing and personalizing your application

7.1. Authentication

7.2. Authorization

7.3. Personalization

7.4. Summary

8. Chapter 8 Charting with Degrafa

8.1. Drawing in Flex

8.2. Common Degrafa concepts

8.3. Creating a pie chart for fun and profit

8.4. Adding your pie chart to the application

8.5. Beyond the example

8.6. Summary

9. Chapter 9 Desktop 2.0 with AIR

9.1. Creating a common library

9.2. Creating the AIR application

9.3. Packaging the AIR application

9.4. Distributing the AIR application

9.5. Summary

10. Chapter 10 Testing your Flex application

10.1. Unit testing and TDD

10.2. Updating the project

10.3. Testing the Presenter

10.4. Testing the View

10.5. Testing the Model

10.6. Continuous integration with Hudson

10.7. Summary

11. Chapter 11 Flex on Grails

11.1. Why Groovy and Grails?

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

11.9. index

© 2014 Manning Publications Co.

What's inside

  • Build rich Flex 4 clients over Java backend systems
  • Detailed examples using standard Java components
  • Unit testing, charting, personalization, and other real-world techniques

About the reader

This book is written for Java developers—no prior Flex experience is assumed.

About the authors

BJ Allmon is a software craftsman, a polyglot developer, and team coach for Pillar Technology Group, an agile business and technology consulting firm. Jeremy Anderson is a Java developer and agile consultant with a passion for Groovy, Grails, and... Flex.

eBook $31.99 pdf + ePub + kindle

FREE domestic shipping on three or more pBooks

Go from novice to expert with just this one book!

Peter Pavlovich, Kronos Incorporated

A veritable tour de force.

John S. Griffin, Coauthor of Hibernate Search in Action

Leverages your existing Java knowledge...a must-read.

Brian Curnow, Gordon Food Service

Fantastic...extremely focused...packed with practical examples.

Doug Warren, Java Web Services