Using BlazeDS to Connect Flex to A Java Class That Returns Data From A Database
Introduction
This is part 4 in my series on using Flex, BlazeDS, and Java. In this part I explain how I used Java to provide my Flex application with a collection of objects that were populated by records from a database. BlazeDS provides the plumbing that enables Flex to communicate with the Java classes on the back end. If you've not yet read the previous posts in this series, you should review them first.
Steps to Set Up This Example
You can view this example online. Right click on the application to view the source code.
I created a series of Java classes that connected to my database, executed a query, and iterated over the result set. For each record I created a Speaker object (Speaker is a separate class with firstName, lastName, and title instance fields). Each Speaker object is added to an ArrayList, which is returned to the caller.

