[Jersey] Schema compliant marshalling

From: Veit Guna <>
Date: Sun, 11 Sep 2011 11:06:13 +0200


I'm using Jersey for implementing a REST service. I've managed to add
schema validation for incoming requests
using the MessageBodyReader. That works so far. Now I've encountered,
that responses generated by Jersey aren't
schema compliant. Is there a way to tell Jersey to use a specific xml
schema when marshalling the response?