*Disclaimer: For the purposes of that reply, one class per endpoint (with its obligatory ceremony of imports and annotations) shall not be considered to be "config overhead". * * * *Nor should the one-file-per object and attendant annotations that come with Jackson (that being the JSON framework that's most likely to be used with Jersey)*
*Counter-Disclaimer: It's possible to put your entire site routing structure in a single file, and avoid pretty much *any* overhead of any kind whatsoever.* - http://www.scalatra.org/stable/book/#Routes - http://unfiltered.databinder.net/Asyncrazy+Temperature+Server.html - https://github.com/jdegoes/blueeyes - https://github.com/spray/spray/blob/master/spray-examples/spray-example-calculator/src/main/scala/cc/spray/examples/calculator/CalculatorService.scala - http://bowlerframework.org/#samples For sheer DSL-exuberance, it's hard not to appreciate the way that bowler embeds the routes directly into method names, even if it does feel a bit like it's pushing things a little *too* far... The best part is that you still get the full awesomeness of running on the Java platform, while taking your maintainability up by an order of magnitude. What's not to like? On 16 March 2012 13:00, Chris Phelps <[email protected]> wrote: > +1. If you are just doing basic RESTful services, JAX-RS (in our case, > using Jersey) fits the bill very well without a whole lot of config > overhead. > > -C > > > > On Fri, Mar 16, 2012 at 7:56 AM, Moandji Ezana <[email protected]> wrote: > >> On Fri, Mar 16, 2012 at 11:52 AM, rakesh mailgroups < >> [email protected]> wrote: >> >>> Some further context of the requirements - expose restful urls, convert >>> json data into Java objects, transform and out into MongoDB. >>> >> >> What about plain JAX-RS? >> >> Moandji >> >> -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
