cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <sbery...@progress.com>
Subject How to replace the output stream
Date Wed, 04 Mar 2009 14:01:45 GMT
Hi,

I'm looking at https://issues.apache.org/jira/browse/CXF-2051 at the moment.
The problem is that after some initial writes to an out message's OutputStream an exception
is thrown and it's handled seperately by also writing something to the output stream. 

Now, when it occurs the original OutputStream should really be replaced with a new one. But
can this be done at the moment ? It looks like the initial write goes directly to the HttpServletResponse.responseStream....

Perhaps it's a up to  auser to handle cases liek thise one ? For example, introduce a Servlet
filter which would buffer the output stream, or directly write to HttpServletResponse which
is available for both JAXWS and JAXRS ?

Thanks, Sergey
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message