Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In the previous chapter, I introduced the Flex RemoteObject component, but I didn't show you the complete process of how to build the server's application in order to allow the Flex client to use the Java native objects and services.
In this chapter, I introduce the BlazeDS server, a Java EE application that is useful in providing a set of services that allows you to connect multiple clients to a server-side application. Usually, a client is a Flex or an AIR application, which also supports JavaScript and Ajax combined with Flex, or as a stand-alone application. The examples will demonstrate how to use the Flex remoting services to retrieve and send data to a Java POJO web application, and how to use the Flex messaging services to update data in real time. We will implement a chat application where the two clients will exchange messages and display them in real time in a TextArea component.