Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
   CamelContext context = ...
   context.getTypeConverterRegistry()

TypeConverterRegistry utilization statistics

Camel can gather utilization statistics of the runtime usage of type converters. These stats is available in JMX, and ass well from the getStatistics() method from TypeConverterRegistry.

From Camel 2.11.0/2.10.5 onwards these statistics is default turned off, as there is a little performance overhead under very high concurrent load. To enable the statistics you can do this from java with:

Code Block

   CamelContext context = ...
   context.setTypeConverterStatisticsEnabled(true);

Or from XML DSL by:

Code Block
xml
xml

<camelContext xmlns="http://camel.apache.org/schema/spring" typeConverterStatisticsEnabled="true">
...
</camelContext>

Add type converter at runtime

...