Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring REST WS : jersey vs resteasy vs restlet vs apache cxf vs Spring WS [closed]

Tags:

I am planning to build a ResT full web service using spring 4 and java 7 for a complex highly performance oriented application. After researching i have found following options.

  1. Spring REST WS (using Jackson). Example
  2. Spring + Jersey. Example
  3. Spring + Resteasy. Example
  4. Spring + Apache CFX. Example
  5. Spring + Restlet. Example

My choice was Spring WS but Spring MVC REST is not JAX-RS compliant (if i am not wrong). Source - Spring MVC REST is not JAX-RS compliant. Does it matter?

Question:

  • Does it matter using it as non JAX-RS compliant??
  • Do i need to take additional steps to make it JAX-RS compliant ??
  • Security point of view what are the steps i need to take care ?
  • Any best prectices ?
like image 236
Om. Avatar asked Mar 21 '15 18:03

Om.


People also ask

What is the difference between Jersey and RESTEasy?

Both Jersey and RESTEasy provide their own implementation. The difference is that Jersey additionally provides something called Chunked Output. It allows the server to send back to the client a response in parts (chunks).

What is the difference between JAX-RS and Jersey?

JAX-RS is an specification (just a definition) and Jersey is a JAX-RS implementation. Jersey framework is more than the JAX-RS Reference Implementation. Jersey provides its own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development.

Which of the following REST framework is Sun Micro systemâ € ™ s implementation of JAX-RS standards?

1. Jersey. Jersey RESTful Web Services framework is open source, production quality, a framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) reference Implementation and initially provided by Sun Microsystem.

Is JAX-RS a framework?

It is also the sole framework available in six consistent editions: Java SE.


1 Answers

Well I guess it always depends on our needs and how we feel we can manage changes and new frameworks releases Personally I'd use the first solution Spring REST WS (using Jackson) above all because it's totally integrated in spring application framework and you must not add (and sometimes fight) with third parties libs; and believe me this is really a good thing

Morever I don't see any great advantage in adding other JAX-WS implementation except to increase the project complexity

And the last....by adding third party libs you not nly have to know good Spring, but also the other libraries you use and not all the developers are able and can learn new technologies....at least this is my opinion and my experience :)

like image 104
Angelo Immediata Avatar answered Sep 18 '22 23:09

Angelo Immediata