Those libraries exist. See netty, webbit.
Re:The Play Framework at LinkedIn
by hendershot on Friday February 22, 2013 @12:03AM
(#5262802)
Yup. Play is built on top of Netty and adds value so my point is why not build it as a re-usable library (or set of libs) vs a Framework, it's really not any more difficult.
I enjoyed the ideas on http://johannesbrodwall.com/2010/03/08/why-and-how-to-use-je... for similar reasons.
On the JVM and especially since version 2.1 Play is one of the most lightweight/modular frameworks. At it's core it's just a fast/async http server. So why can't that just be a library you pull in and fire up in a main method?
You can have an IDE or somthing like sbt recompile your changes on the fly so you can get rapid feedback. Ultimately more rapid feedback comes for automated tests vs refreshing your browser and verifying something manually (unless it's UI/lookandfeel changes which are not generally limited by having to compile)