cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DmitryM <>
Subject Re: Jax-RS ExceptionMapper and data marshalling
Date Mon, 08 Mar 2010 17:44:52 GMT


The matter is I'm already JSON provider and expect it to do the job for me.
As I said, it worked perfectly fine for the second method (not having return
type specified).
And I would like to keep the methods in sync (as well as the result type,
which is set to JSON).

I was just wondering why it works okay without return type and doesn't work
on standard Java types with return type specified.


Sergey Beryozkin-5 wrote:
> Response.status(resultStatus).type("text/plain").entity("error
> message").build();
> rather than expecting primitive types being wrapped ? It can be done but I
> haven't really had a chance to look into it - I do not see what real
> benefits it will bring

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message