Java RESTful Jersey Examples? [closed]
Are there any examples that demonstrate using Java and Jersey to perform Client<->Server communication? Such as sending XML data to and from each other?
I would suggest this tutorial from Lars Vogel
It's great place to start with exploring Java Restful, with the use of Tomcat and Jersey. With small remark that not everything there is cohirant- you should try to do some of the work yourself.
Furthermore I had trouble myself working with it, but I found this great extension to the Vogel's tutorial.
The one from Lars Vogel already pointed out is great, but I would also recommend you to check this one, published by IBM. Also, the official documentation is full of useful code snipets. This, together with the API reference should be enough to start on it!
There are plenty of samples in the Jersey samples zip file:
http://download.java.net/maven/2/com/sun/jersey/samples/jersey-samples/1.4/jersey-samples-1.4-project.zip
精彩评论