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

Sergey Beryozkin edited comment on CXF-5069 at 7/4/13 10:03 AM:
----------------------------------------------------------------

Postponing writing the response body seems problematic in Camel and I guess it 
is problematic in general.
However, making an actual object which has been just written out or will be 
injected into a JAX-RS endpoint available to the rest of the route makes sense.

The idea is to use these simple providers optionally when jaxrs:server 
implementation is used directly within a Camel route, hence I think it's 
reasonable to ship them as part of CXF - in principle they can be used with 
other routing engines too  
                
      was (Author: sergey_beryozkin):
    Postponing writing the response body seems problematic in Camel and I guess 
it is problematic in general.
However, making an actual object which has been just written out or will be 
injected into a JAX-RS endpoint available to the rest of the route makes sense.

The idea of these provider is to get it optionally used when jaxrs:server 
implementation is used directly within a Camel route, hence I think it's 
reasonable to ship these simple providers as part of CXF - in principle they 
can be used with other routing engines too  
                  
> Create utility caching MessageBodyWriter and MessageBodyReader
> --------------------------------------------------------------
>
>                 Key: CXF-5069
>                 URL: https://issues.apache.org/jira/browse/CXF-5069
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>
> Lets ship a basic caching JAX-RS MBW that will save the object to be written 
> and then flush it to OS once requested. Can be handy in Camel routes, with 
> CXF RS being at the top of the route, where the endpoint returns some Object, 
> which is then further used in the route, and then, finally, it is serialized

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to