Hi,
I'm using camel 2.8.1

Regards

----- Mail original -----
De: "Claus Ibsen" <[email protected]>
À: [email protected]
Envoyé: Mardi 4 Octobre 2011 10:32:09
Objet: Re: camel jpa tracer always set routeId as route1

Hi

What version of Camel are you using?

On Tue, Oct 4, 2011 at 10:12 AM,  <[email protected]> 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: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to