1) I made costom Trace Formatter
<bean id="traceFormatter"
class="test.camel.core.processor.interceptor.BDDefaultTraceFormatter">
<property name="showBreadCrumb" value="true" />
<property name="showNode" value="true" />
</bean>
2) when It includ my camle router xml, Custom Tace Formatter is working
well
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:cm="
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.1/blueprint.xsd">
<bean id="traceFormatter"
class="test.camel.core.processor.interceptor.BDDefaultTraceFormatter">
<property name="showBreadCrumb" value="true" />
<property name="showNode" value="true" />
</bean>
<camelContext trace="true" xmlns="http://camel.apache.org/schema/blueprint">
<route id = "test_trace_router_0001">
<from uri="timer:simpleTimer?period=60000" />
<setBody>
<simple>Hello from timer at ${header.firedTime}</simple>
</setBody>
<log message="TEST ##########################################"/>
<to uri="mock:result"/>
</route>
</camelContext>
</blueprint>
log
======================================================
Timestamp : 2015-09-09 11:20:49
Exchange Id : ID-dewey94esb-PC-33470-1441765239503-2-2
Route Id : test_trace_router_0001
Previous Node : log[TEST ##########################################]
To Node : mock://result
Trace Info >>> log[TEST ##########################################] -->
mock://result <<<
======================================================
*When I make others camel router xml, Should I always Copy it in
Router-XML ? *
*I want to use bean from another osgi bundle jar or xml.*
*How Can I reuse bean **from another osgi bundle jar or xml?*