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.
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:
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).
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.
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.
It is also the sole framework available in six consistent editions: Java SE.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With