After a hiatus during a paper/presentation/training season, I’ve finally gone back and cleaned up the Flash/Flex versions of Hessian and BAM. The Hessian side is now updated to be compatible with the latest Hessian 2 changes. As Scott mentioned, the BAM API and protocol has undergone some changes since the last revision, so I’ve rewritten the Flash implementation of that as well. It was a surprisingly large amount of work, but I think everything is now up-to-date as well as a bit more stable.
For those that are interested, here’s a quick hello world with the new BAM API with a Flash client and a Java backend…
The Flash client just sends a basic query. This is a bit long not because of the BAM bits, but just because of the UI stuff. Pay attention to what the HmtpClient is doing…
The Java service that receives and processes the query is pretty simple as well:
Finally, to configure the service in a webapp, your resin-web.xml will look like this:
We specify the password that clients will use, configure the BasicTestService, and deploy the HmtpServlet to handle the protocol requests.
If you’re familiar with the previous BAM incarnation, this shouldn’t look too different, but I’ll also try to get some decent examples up soon for those of you who are new to BAM. I’ll be releasing a snapshot soon with the final release coinciding with Resin 4.0