Thursday, February 14, 2013

Apache camel trace enabling from spring XML log4j

Wondering why your apache camel trace is not working and you are not seeing the camel route trace.

http://camel.apache.org/tracer.html

Add the following dependencies to your pom.xml
<depedency>
    <groupId>org.slf4j</groupId>
    <artifactId> slf4j-log4j12<artifactId>
    <version>1.6.1</version>
<depedency>

Enable apache camel tracer
<camelContext trace="true" xmlns="http://activemq.apache.org/camel/schema/spring">
    ...
</camelContext>

Thats all. Enjoy your camel ride !