Ultra-lightweight Java web services with Gretty

how-to
Sep 22, 20111 min

Gretty is one of a new school of ultra-lightweight frameworks made for building web services. Built on top of the blazingly fast Java NIO APIs, Gretty leverages Groovy as a domain-specific language for web endpoints and Grape’s Maven-style dependency management. In this article, get started with using Gretty to build and deploy Java web service applications.

You’ll see first hand that Gretty is as light as light can be. There is no embedded ORM-framework and no robust view framework either. Gretty is the antithesis of the modern full-stack web framework, precisely because sometimes you don’t need an entire stack, baby.

andrew_glover

When Andrew Glover isn't listening to “Funkytown” or “Le Freak” he enjoys speaking on the No Fluff Just Stuff Tour. He also writes articles for multiple online publications including IBM's developerWorks and O'Reilly’s ONJava and ONLamp portals. Andrew is also the co-author of Java Testing Patterns, which was published by Wiley in September 2004; Addison-Wesley’s Continuous Integration; and Manning’s Groovy in Action.

More from this author