I am completely new Play framework and Scala. I am trying to push some events from the server to the browser using Html5 -server sent events and play framework.
I came across this example in Scala. I tried implementing action composition in java by extending play.mvc.Action.Simple. I am not sure how to set the response headers in the action composition.
http://benquasmalltalk.blogspot.fr/2012/04/hub-interesting-but-undocumented.html
The data I am sending is coming from a database and not an enumeration. Any pointers will be helpful