Syntax
<fileExchangeStore dir="[string]" raw="[false,true]" saveBodyOnly="[false,true]"/><fileExchangeStore dir="[string]" raw="[false,true]" saveBodyOnly="[false,true]"/>
Sample
<beans>
<router exchangeStore="fileExchangeStore" />
<transport >
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
<fileExchangeStore dir="temp" raw="false" saveBodyOnly="false" />
</beans>
<beans>
<router exchangeStore="fileExchangeStore" />
<transport >
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
<fileExchangeStore dir="temp" raw="false" saveBodyOnly="false" />
</beans>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| dir | true | - | Directory where the exchanges are saved. | logs |
| maxDays | false | -1 | Number of days for which exchange logs are preserved. A value smaller than zero deactivates the deletion of old logs. | 60 |
| raw | false | false | If this is true, headers will always be printed (overriding saveBodyOnly) and the body of the exchange won't be formatted nicely. | true |
| saveBodyOnly | false | false | If this is true, no headers will be written to the exchange log files. | true |