In what contexts is it better to use one over the other and why?
Thanks!
JAX-WS is an API for SOAP-based WS, and using it for RESTful WebServices is not the best way to go about things.
So if you're looking to implement a RESTful WebService, use JAX-RS .