javakaffee

Just another weblog about (web) development technologies like spring, tapestry, jersey, jsf, hibernate and more

August 31, 2008

Added new jersey sample spring-annotations - how to use jersey and spring/annotations

Filed under: development, java, webdev, REST — martin.grotzke @ 5:00 pm

After I have blogged about the jersey-spring integration (jersey-spring integration mostly complete, jersey-spring and changes now available in the jersey trunk / namespace com.sun.ws.rest renamed to com.sun.jersey) and Paul posted an update on the jersey-spring integration in his blog, I finally added a sample that shows how to use jersey and spring (using annotations provided/supported by spring >= 2.5: @Resource and @Autowired).


One resource class in this sample app also shows how users of spring < 2.5 (e.g. spring 2.0) can use annotation based autowiring, this is achieved using the @Autowire annotation provided by jersey-spring (which I already described in this posting).


This sample is especially useful as it will be up to date in the future: it will reflect configuration, namespace or other changes made in jersey, jersey-spring or even spring, so that there’s not the problem that there will be information that is out of date ;-)

August 28, 2008

Jersey and WADL generation - documented!

Filed under: development, java, webdev, REST — martin.grotzke @ 3:06 am

Puh, I just wrote a bunch of text that describes what I implemented related to wadl for jersey, so I just drop a line here. The generated WADL is really cool as it contains javadoc comments from resource classes, and even might include example xml snipplets - for some users of REST APIs xml is easier to read than xsd 8-)


The documentation is not yet complete but covers most of the features:

There’s still documentation missing that shows how to use the maven-wadl-plugin to generate the WADL without a running jersey app. Also some documentation should be written that describes, how the user can define and process his own javadoc tags and turn them to WADL.


Still s.th. to write, but the biggest part should be done - puh :-)

Tags: , , ,

Powered by WordPress