Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Consider the following scenario. A Wall Street trader clicks the Buy button. A Flex message producer sends a message to the remote server over the Internet. You can’t afford to lose even one such message, so the rest of this chapter is devoted to implementing guaranteed delivery of messages initiated on the client in the Flash Player.
Because Flex provides an mx.messaging.events.MessageAckEvent for every client message, you do not have to worry about acknowledgment. You do still need to take care of the content of the acknowledgment. As you would expect, we are going to enumerate the messages with the seqNo header by extending the standard endpoint class to return this information inside the MessageAckEvent in the form of the lastProcessedNo header. This will be a responsibility of the custom AcknowledgingEndpoint Java class.