Chapter 4. Remoting between Flex and POJOs

Among all its features, remoting between a Flash player and a Java server could qualify as the central pillar of BlazeDS. Back in Chapter 2, you were made aware of the fundamentals of remoting through a naïve example. In this chapter, you will leap ahead by learning the intricate details of remoting. You will be exposed to the classes, components, modules, and formats that make up the truss that supports this feature.

While Flex and AIR are considered as one side of the pipe, a Java object on the server constitutes the other end. Java objects can be of many types, some of which only respect the Java language contract and some of which that extend specific classes or implement special interfaces. They can exist in a plain vanilla JVM (Java virtual machine) instance or they can be managed within a special container. In this chapter, I talk exclusively about the simple plain Java objects, which are often commonly termed as Plain Old Java Objects, or POJO(s) for short. Read the note on POJOs to learn more about them.

POJOs

POJO, which stands for Plain Old Java Object, was coined by Martin Fowler, Rebecca Parsons and Josh MacKenzie in September 2000. A POJO represents a simple Java class that does not extend a specific class or implement a special interface, or is annotated by a special piece of metadata. Sometimes, though, the definition of a POJO can be a little relaxed and may include simple objects that may be decorated by certain annotations. ...

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.