Hi all,
I'm working on the camel jpa tracer.
It works fine but always produce a routeId field as 'route1'. However I 
initialied all my rouet Ids fields as following :

 <camelContext xmlns="http://camel.apache.org/schema/spring";
                id="proxycontext" trace="true">
        <camel:package>info.touret.exchange</camel:package>
        <camel:jmxAgent id="agent" createConnector="true" 
serviceUrlPath="/ws-proxy/camel"/>
        <routeBuilder ref="proxyroutebuilder" id="main" />
        <route id="audit">
            <from uri="seda:audit" />
            <to uri="bean:auditService?method=audit" />
        </route>
        <route id="gototoken">
            <from uri="seda:gototoken?multipleConsumers=true" />
            <to uri="http://uri..."; />
        </route>
    </camelContext>

Actually, I guess the jpa tracer should write in my case such audit, gototoke 
or main.

Did I miss any config parameter ?

My config : 

    <camel:endpoint id="traced" 
uri="jpa://org.apache.camel.processor.interceptor.JpaTraceEventMessage?persistenceUnit=tracer"/>

    <bean id="camelTracer" 
class="org.apache.camel.processor.interceptor.Tracer">
        <property name="traceOutExchanges" value="false" />
        <property name="useJpa" value="true" />
        <property name="destination" ref="traced" />
        <property name="logLevel" value="DEBUG" />
    </bean>

    <bean id="traceFormatter"
                
class="org.apache.camel.processor.interceptor.DefaultTraceFormatter">
        <property name="showOutBody" value="true" />
        <property name="showOutBodyType" value="false" />
        <property name="showOutHeaders" value="true" />
        <property name="breadCrumbLength" value="80" />
        <property name="showExchangeId" value="true" />
        <property name="showShortExchangeId" value="true" />
    </bean>



Thanks in advance for your help.

Regards,
Alexandre Touret

Reply via email to