dev@jersey.java.net

Re: WebApplicationException alternative suggestion

From: Adam Walczak <me_at_adamwalczak.info>
Date: Thu, 25 Nov 2010 19:01:45 +0100

> So you are suggesting the exception class should also be annotated with JAXB
> annotations?

I think that there should be a default set of rules on serializing
exceptions to xml/json which can be overwritten by using JAXB. But
JAXB it self is not mandatory in this solution.

> In general yes, but i think it would be useful to merge where appropriate
> Alexandru's ideas.

Ok. I'll email Alexandru if he could give me some code sample of his solution.

BTW. Personally I dislike the FormBuilder sample. I use JAX-RS mostly
for EJB's that are not just used by the web front-end and a form is
something web-specific.

-- 
Adam Walczak
www.adamwalczak.info
+48 604 188 992