I knew about JSR 311 (JAX-RS), the "REST" JSR, but what I didn't know until today was that it can make my life a lot easier
In a number of projects, we have situations where requests have to produce output in a number of formats, mainly HTML and JSON or XML. That often leads to duplicate code, branches, and "inperformance due to historical reasons". I just learned that with JSR 311, one can use annotations describing the desired output formats. And the reference implementation, Jersey, is available in NetBeans, at least in my 6.5.1 linux installation. More information is available at http://jersey.dev.java.net .
written on 02 Jun 2009 01:26.Create comment