Hi
On 26/10/11 08:26, Sadhana Jain wrote:
Hi Sergey,
We have been using an cxf-jaxrs for a while and currently the response
gets marshalled by JAXRSOutputInterceptor using our own messageBodyWriter.
However, we have two layers in our architecture and output from layer1
gets consumed by layer2 (both layers are within the same jvm). So, instead
of marshalling data from layer1 and receiving it and unmarshalling it into
java objects again, we would like to not do marshalling for some cases and
instead receive the response entity as it. Is there a way to pass the
response entity as it is?
Do you mean you need to avoid (un)marshalling when you say that the
response entity needs to be received as is ?
I am thinking to insert another interceptor before JAXRSOutputInterceptor
and extract it from cxf Message and put it in httpresponse. Is there any
better solution?
Not sure if that helps but in some cases, when you already have say a
string representation and would like to avoid it being marshalled,
setting an "ignore.message.writers" property will do...
Cheers, Sergey
Thanks much,
Sadhana