Accessibility

Flex Article

 

Developing Flex RIAs with Cairngorm microarchitecture – Part 5: Server-side integration


Steven Webster

Steven Webster

Adobe Consulting
www.richinternetapps.com

Leon Tanner

Leon Tanner

Adobe Consulting

Table of Contents

Comments
Created:
21 July 2008
User Level:
Beginner, Intermediate
Products:
Flex

In Part 4 of this series, we discussed the client-side features of the Cairngorm application and advocated some best practices for structuring and architecting your view, that is, the MXML and ActionScript code that describes your user experience. We then dived into the details of feature-driven development using the Front Controller, Event Broadcaster, and Command patterns, explaining how they assist in rapidly and consistently delivering new functionality to rich Internet applications (RIAs).

The final piece of the RIA puzzle that Cairngorm helps you solve is integrating your application with services that reside on "the other side of the wire"—that is, on the server infrastructure. You've seen the benefits of adopting a consistent approach to implementing client-side business logic, and this article will demonstrate the benefits of a consistent approach to invoking business logic on a server and fetching data from a server for your client-side application.

By the end of this article, you will have seen the entire set of Cairngorm design patterns and how they collaborate in a Cairngorm application.

Requirements

In order to make the most of this series, you need the following software and files:

Flex Builder 3

Cairngorm version 2.2

Cairngorm Store

Throughout the series you will find references to code taken from an e-commerce application named Cairngorm Store. You may use this sample application to gain a better understanding of Cairngorm, but please consider it only as a guide. Adobe is not responsible for maintaining the Cairngorm Store application.

Prerequisites

Read the previous articles in the series, starting with Developing Flex RIAs with Cairngorm Microarchitecture – Part 1: Introducing Cairngorm before reading Part 5.

About the authors

Steven Webster is the practice director for Rich Internet Applications at Adobe. Steven Webster was a technical director at iteration::two, a world-leading Rich Internet Application consultancy based in Edinburgh, Scotland. Steven is the author of Reality J2EE: Architecting for Flash MX and coauthored ActionScript 2.0 Design Patterns for Rich Internet Applications (ActionScript 2.0 Dictionary) and Developing Rich Clients with Macromedia Flex with Alistair McLeod. Steven speaks regularly at conferences and user group meetings on technical and business aspects of RIAs. Steven is the core contributor to the open-source Cairngorm project, a microarchitecture for RIAs based on J2EE patterns which was innovated by iteration::two over a number of Flash and Flex RIA developments.

Leon Tanner is a Senior Technical Consultant at Adobe Consulting and relishes working on some of the most challenging and interesting Flex-based projects on a daily basis.  Having held a passion for both software development and visual design long before his career started, he fell for Flex as the perfect tool for creating highly engaging and visually stunning applications.  Leon adopted Cairngorm as far back as the Flex 1.0 days and has continued to promote it since.