An amf module for the amazing playframework
Ever since I discoverd the amazing playframework I waited for someone to come up with a module to let the playframework talk to actionscript via amf.
But as noone came up with something until now, I took the time to investigate the matter myself. The closest solution I found before I started was a blogpost by Xavier Hanin.
I asked Xavier whether he could publish the code, but unfortunately he didn't publish it yet (he said that he had to check with his boss first). But as described in his interesting post it's not that hard to make it happen, because the probaby most difficult part is already at hand: the amf related code.
Because I know Jens and value his work, I always used his amf framework cinnamon to connect java with flash, so cinnamon was my first choice for this job, too.
I found that the cinnamon codebase is very clean and well written, so it was pretty easy to eleminate the servlet dependencies and integrate cinnamon into play. Well actually I just had to write a simple Controller class.
Putting the code in a playframework module was pretty easy too and so I had a working amf module in about a day.
You can find the complete module code at bitbucket. The code isn't tested very deeply yet and there are still some things to do, but it seems to work great so far.