[
https://issues.apache.org/jira/browse/CXF-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833382#action_12833382
]
Rémi Flament commented on CXF-2670:
-----------------------------------
Example of spring configuration :
{code}
<bean id="exchangeDAO"
class="org.apache.cxf.management.persistence.FilesystemExchangeDataDAO">
</bean>
<bean id="exchangeFilter"
class="org.apache.cxf.management.persistence.StatusExchangeDataFilter">
</bean>
<bean id="persistOutInterceptor"
class="org.apache.cxf.management.interceptor.PersistOutInterceptor">
<property name="exchangeDataDAO" ref="exchangeDAO" />
<property name="exchangeDataFilter"
ref="exchangeFilter"></property>
</bean>
{code}
> 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.