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

Alessio Soldano commented on CXF-4030:
--------------------------------------

Ah, I think now I see the situation, you're using a LoggingOutInterceptor for 
logging the outgoing message, right? That sets a CacheAndWriteOutputStream 
(which extends the CachedOutputStream) as output stream for the current 
Message, caches everything and print the the copy on the logs on stream close.
I think you can simply use a custom interceptor that allows for setting the 
threshold / max size in the used CacheAndWriteOutputStream, I'm modifying the 
LoggingOutIntercetor soon accordingly.
                
> externalize configuration of org.apache.cxf.io.CachedOutputStream.Threshold
> ---------------------------------------------------------------------------
>
>                 Key: CXF-4030
>                 URL: https://issues.apache.org/jira/browse/CXF-4030
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>            Assignee: Alessio Soldano
>
> Seems like the threshold can only be set as a system property:
> http://www.java2s.com/Open-Source/Java-Document/Web-Services-apache-cxf-2.2.6/common/org/apache/cxf/io/CachedOutputStream.java.htm
> I'd like to configure the threshold individually for applications in the same 
> container - so it would be preferable to configure this through the endpoint 
> and/or bus.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to