[ 
https://issues.apache.org/jira/browse/CAMEL-9123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743012#comment-14743012
 ] 

Varun commented on CAMEL-9123:
------------------------------

Thanks Willem, you were correct i was indeed using simple consumer binding 
style, and my service class was returning Resposn Objet instead of the actual 
POJO , which made it skip the regular process, below has been documented in the 
link which you have shared.


" If the message body type is different to javax.ws.rs.core.Response 
(user-built response), a new Response is created and the message body is set as 
the entity (so long it's not null). The response status code is taken from the 
Exchange.HTTP_RESPONSE_CODE header, or defaults to 200 OK if not present.
If the message body type is equal to javax.ws.rs.core.Response, it means that 
the user has built a custom response, and therefore it is respected and it 
becomes the final response."

you can close this ticket. Thanks.

> Camel is not invoking JAX-RS Client (jax-rs) providers" readFrom" method 
> while returing the response back to the CXF server
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-9123
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9123
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxfrs
>    Affects Versions: 2.15.3
>            Reporter: Varun
>
> I have a CXF JAX-RS server talking to a CXF JAX-rs client in my camel route, 
> The RS client inturn talks to REST API, both the server and client have been 
> configured with custom JAX-RS providers to perform custom 
> deserlization/serilizations. The JAX-RS server "readFrom" method is invoked 
> followed by the clients "writeTo" which perfroms the  REST API call once the 
> API rerurns the response , camel is not invoking CXF client providers 
> readFrom/isReadable method, rather  its directly calling JAX-RS servers 
> writeTO method where the Object is coming as LoadedByteArray instead of the 
> actual Java POJO.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to