O'Reilly logo

Flex on Java by Jeremy Anderson, BJ Allmon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Flex messaging

This chapter covers

  • Setting up BlazeDS for messaging
  • Using the Flex Messaging API
  • Creating a polling channel

The Flex Messaging API, bundled with BlazeDS, provides asynchronous messaging, which you can use to create a better user experience by enabling your application to refresh itself in real time whenever anyone using the application makes any changes. The BlazeDS MessageService allows bidirectional communication between Flex clients and the server side.

In general, you want to use messaging to notify the client of changes. This will fire off an event to refresh the FlexBugs issues list. Figure 6.1 demonstrates this use of messaging.

Figure 6.1. Simple polling

This chapter will exploit the use of the Flex Messaging ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required