January 14, 2008

Using Flex with Spring

Many people in the Java community have recently been asking how to use Flex with the Spring framework, and more specifically, how to remotely invoke Spring beans methods from Flex applications.

Spring is one of the most popular Java frameworks. It is based on a lightweight component container that implements the Inversion of Control (IoC) pattern. Using an IoC container, components don’t instantiate or even look up their dependencies (the objects they work with). The container is responsible for injecting those dependencies when it creates the components (hence the term “Dependency Injection” also used to describe this pattern). The result is looser coupling between components. The Spring IoC container has proven to be a solid foundation for building robust enterprise applications.

The Flex and Spring integration process is actually very straightforward. Based on the interest in combining these technologies, I wrote a document providing background information, configuration information, and three examples with source code.

You can read the “Using Flex with Spring” document here.

UPDATE (1/12/2007): I put together a Tomcat-based Test Drive Server that includes these samples running out-of-the box. Read this post for more info.

Advertisements
October 1, 2007

Flex with Cairngorm

Suggested Intro Materials & Resources

David Tucker :: Getting Started With Cairngorm :: Part 1 :: Part 2 :: Part 3 :: Part 4 :: Part 5

Jeffry Houser :: Learning Cairngorm :: Part 1 :: Part 2 :: Part 3 :: Part 4 :: Part 5

Jesse Warden :: 10 Tips For Working With Cairngorm

Neil Webb :: Cairngorm For Beginners :: Covers version 2.2 :: Part 1 :: Part 2 :: Part 3

Steven Webster :: Why I think you shouldn’t use Cairngorm

Steven Webster :: So What’s Happening Next with Cairngorm

Steven Webster :: Developing Flex RIAs with Cairngorm Microarchitecture :: Written for version .99 but most of the concepts are still applicable :: An excellent overview by one of the framework’s primary authors

  • Part 1 :: Introducing Cairngorm
  • Part 2 :: Keeping State on the Client
  • Part 3 :: Architecting the View
  • Part 4 :: Feature-Driven Development
  • Part 5 :: Server-Side Integration
  • Part 6 :: Rapid and Consistent Development with Cairngorm and Flex

Alex Uhlmann :: Dashboard Example – “How Business Logic Can Manage Views” :: Part 1 :: Part 2 :: Part 3 :: Part 4

Chen Bekor :: ModifiedCairngormStore Example :: Uses mock delegates so that you can explore the example with a Java server, etc. :: Cairngorm 2.1 version :: Cairngorm 2.2.1 version

Cairngorm Diagram

Cairngorm Diagram Explorer

CairngormDocs.org

AIR & Cairngorm

Eric Feminella :: AIR Cairngorm (AIR extensions for Cairngorm)

Eric Feminella :: AIR Cairngorm 2.0

Alternatives To Cairngorm

See the Architecture section of our Flex Code page.