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

Sergey Beryozkin commented on CXF-2670:
---------------------------------------

Hi, sorry for a delay

I'm wondering, should it be PersistIninterceptor that checks the filter ? So 
that the ExchangeData instances are not even placed on the exchange and GCd ?

cheers, Sergey

> Filter to indicate to PersistOutInterceptor if an exchange should be persisted
> ------------------------------------------------------------------------------
>
>                 Key: CXF-2670
>                 URL: https://issues.apache.org/jira/browse/CXF-2670
>             Project: CXF
>          Issue Type: Improvement
>          Components: Bus
>    Affects Versions: 2.3
>            Reporter: Rémi Flament
>             Fix For: 2.3
>
>         Attachments: cxf-management-data-filter-1.patch.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Here is a patch that add a filter for ExchangeData instance. 
> If a filter is present, PersistOutInterceptor will use it to check if the 
> message should be persisted.
> The patch contains a default implementation which allows to persist messages 
> with a specific status (i.e log only successful messages or on only requests 
> that caused an error).
> One could write its own ExchangeDataFilter to persist only requests of a 
> certain size, or that causes a specific exception, of only if a certain 
> additionnal property is present, or only for a specific user-agent, and so 
> on...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to