On Wed, Nov 30, 2011 at 5:37 PM, Ivan <[email protected]> wrote:
> Say, user needs to build RESTful HTTP services. He can do it using either > frameworks with proprietary API (like Restlet, Restfulie) or frameworks > supporting JAX-RS API (like Jersey, Apache CXF and Restlet as well). I > would agree they are incomparable things but at then end they serve the > same purpose. So, selecting from your list the question is more about > choosing between JAX-RS annotations and the Restlet annotations. But I > think (from my limited Restlet knowledge) the difference is much more than > just annotations. > Check out the Restlet wiki for an overview of the many things that Restlet provides beyond annotations for resource classes. The two flavors of annotation are pretty similar, and, as you say, Restlet can work with either flavor, so if you're using Restlet, the decision between them comes down to personal preference. For example, I like the way the Restlet API separates the routing behavior (mapping URI to resource) from the resource behavior (methods marked @Get, @Put, etc.), allowing me to put the routing logic for an application all in one place. JAX-RS @Path annotations scatter the routing among many resource classes (although I wouldn't be surprised to find that it's possible to use a hybrid approach of JAX-RS annotations with Restlet routing). --tim ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2889645

