Chapter 9. Extending BlazeDS with Custom Adapters

In the last few chapters you learned to use BlazeDS to communicate between Flex clients and Java servers, using remote procedure calls and messages. In those chapters, you have relied on the built-in adapters and factories for communication and server-side method invocation. This is no surprise, since these built-in adapters and factories suffice for a large number of communication patterns and interaction with Java server-side objects.

However, there are use cases where you need to extend and customize existing adapters and create newer ones. Adobe recognized this need to create custom adapters from the time it created the very first version of Flex Data Services, which is a precursor to BlazeDS. Therefore, a fairly robust set of APIs is available to extend and create custom adapters for BlazeDS. In this chapter, you will learn all about creating custom adapters. In addition, you will also learn to create custom factories.

Get Professional BlazeDS: Creating Rich Internet Applications with Flex® and Java® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.