camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel jpa tracer always set routeId as route1
Date Tue, 04 Oct 2011 08:32:09 GMT
Hi

What version of Camel are you using?

On Tue, Oct 4, 2011 at 10:12 AM,  <atouret.nospam@free.fr> wrote:
> 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
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message