developerWorks: Web architecture : Sending rich messages between client and server using asynchronous messaging Erik's previous article, "Remote scripting using a servlet," described an infrastructure for asynchronous remote scripting between a browser and a servlet backend. This article expands on that premise by describing an asynchronous messaging system that allows rich messages to be sent back and forth between client and server. In order for these messages to be compliant with most browsers, they will be sent as JavaScript objects. This article builds on the code presented in the earlier piece, and creates an automated messaging layer so that the browser and server can keep in constant contact with one another.