Spring REST WS : jersey vs resteasy vs restlet vs apache cxf vs Spring WS

Om. picture Om. · Mar 21, 2015 · Viewed 28.2k times · Source

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 ?

Answer

Angelo Immediata picture Angelo Immediata · Mar 21, 2015

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 :)