4. Monitoring, Logging and Statistics

statisticsJDBC

Version

Writes statistics (time, status code, hostname, URI, etc.) about exchanges passing through into a database (one row per exchange).

Syntax

statisticsJDBC:
dataSource: <string> # required
createTable: <boolean>
postMethodOnly: <boolean>
soapOnly: <boolean>
statisticsJDBC:
  dataSource: <string> # required
  createTable: <boolean>
  postMethodOnly: <boolean>
  soapOnly: <boolean>

Sample

<beans>
<transport coreThreadPoolSize="20">
<ruleMatching />
<dispatching />
<userFeature />

<statisticsJDBC postMethodOnly="false" soapOnly="true" dataSource="dataSource"/>

<httpClient />
</transport>
</beans>
<beans>
  <transport coreThreadPoolSize="20">
	<ruleMatching />
	<dispatching />
	<userFeature />

	<statisticsJDBC postMethodOnly="false" soapOnly="true" dataSource="dataSource"/>

	<httpClient />
  </transport>
</beans>

Attributes

NameRequiredDefaultDescriptionExamples
createTablefalsetruetoggle to try automatic table creation or disable table creation altogether-
dataSourcetrue-The spring bean ID of a data source bean.-
postMethodOnlyfalsefalse--
soapOnlyfalsefalse--

Can be used in