title: Spring 4 vs Jersey for REST web services
body: <p>We are planning to make a new application with spring 4.0.6 version. We use controller that can return "XML" or "JSON". 
  In the previous project we have successfully implemented Jersey with Spring for REST support using JAX-RS API, but after reading a few articles and suggestions from seniors they said spring is providing pretty good REST support. </p>
  
  <p>Some of the points that really confused me if I use Spring REST support without using JAX-RS and Jersey are:</p>
  
  <ol>
  <li><p>How marshaling and unmarshaling done in Spring MVC ?</p></li>
  <li><p>Is it necessary for marshaling or unmarshaling need to use jax-rs. </p></li>
  <li><p>If marshaling and unmarshaling are automatically handled by spring then how does it know about xmlRootElements.</p></li>
  </ol>
  
  <p>I am still confused if Spring proving very good support of REST then why do people still go with Jersey for REST?
  Really looking to know more in details.</p>
  
  <p>If I said anything wrong please ignore it.
  Explanation with example is really helpful.</p>
  
  <p>Thanks in advance!!</p>