You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2013/07/04 12:03:19 UTC

[jira] [Commented] (CXF-5069) Create utility caching MessageBodyWriter and MessageBodyReader

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

Sergey Beryozkin commented on CXF-5069:
---------------------------------------

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