how to return response from jaxb when validation fails
i am using jaxb 2X and i have extended ValidationEventCollector where i can collect the error details.
Now i want to send my client the error details. how can i send a http response from jaxb.
also for any exception that is thrown internally by jaxb client always gets 400-Bad request.
i want to send a customized error message. please help.