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

Mitko Kolev commented on OLINGO-858:
------------------------------------

Hi Michael, 

* the environment that we use is Virgo for Tomcat (so basically Tomcat), the 
jax-rs implementation that we use is Apache CXF. IMHO the streaming should be 
framework/servlet container agnostic. What exactly are your concerns about 
container/framework?
* the parameter {{someInputStream }} in my example is some arbitrary 
java.io.InputStream object. In my particular case the content is streamed from 
a relational DB. 
Important is that the content is not, and shall not be loaded, in memory.

Best regards, 
Mitko

> org.apache.olingo.odata2.api.processor.ODataResponse enity is not streamed
> --------------------------------------------------------------------------
>
>                 Key: OLINGO-858
>                 URL: https://issues.apache.org/jira/browse/OLINGO-858
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata2-core
>    Affects Versions: V2 2.0.5
>            Reporter: Mitko Kolev
>            Assignee: Michael Bolz
>
> The entity of the {{org.apache.olingo.odata2.api.processor.ODataResponse}} is 
> not streamed.
> {code}
> ODataResponse.newBuilder().entity(someInputStream).header("Content-Type", 
> "application/octet-stream")
>                 .status(HttpStatusCodes.OK).build()
> {code} 
> It would make sense to stream this directly in the HTTP response.



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

Reply via email to