Java API for RESTful Web Services
The Java API for RESTful Web Services 2.0 Specification was developed under JSR 339. This section just gives you an overview of improvements in the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr339/index.html.
When to use Web Services
A Web Service is a software system based on open standards (such as HTTP, XML, and URI) and designed to allow exchanges between applications across the network. By using these open standards, it has everything required to be the most suitable solution for integrating heterogeneous systems. However, as we saw when we were talking about JMS, the choice of an integration solution should be made after a series of questions: Is the network connection good? Are the processes transactional? Is the amount of data to be processed huge? Must processing be synchronous? and so on.
If after investigation, your choice is Web Services, you must now select...