camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L F <>
Subject Tracing messages including step information to a queue/topic
Date Tue, 17 Mar 2015 13:21:45 GMT
I have configured a camel context with tracing, and configured an endpoint (activemq topic)
where it should send the trace message. It works but i face two problems:        1.
the message is sent to the topic, and i can access it from a custom java code, but i can't
find any information related to the current context, route which is executing or the current
step. Is there any way to obtain these information?

    2. it works really slow ... 
current setup: apache karaf 3.0.3, camel 2.16.0
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"> 
      <property name="brokerURL" value="tcp://"/>        <property
name="transacted" value="false"/>               <property name="usePooledConnection"
value="true"/>    </bean>        <bean id="camelTracer" class="org.apache.camel.processor.interceptor.Tracer">
               <property name="useJpa" value="false"/>        <!-- the
destination to send the traced messages -->        <property name="destination"
ref="traced"/>        <property name="traceInterceptors" value="true"/>   
    <property name="traceExceptions" value="true"/>        <property name="traceOutExchanges"
value="true"/>        <property name="logStackTrace" value="true" />     
  <property name="logLevel" value="ERROR"/>
    <bean id="traceFormatter" class="org.apache.camel.processor.interceptor.DefaultTraceFormatter"> 
      <property name="showBody" value="true"/>        <property name="showBodyType"
value="false"/>        <property name="showBreadCrumb" value="false"/>     
  <property name="maxChars" value="100"/>        <property name="showNode" value="true"/> 
      <property name="showProperties" value="true"/>    </bean>...<camelContext
xmlns="" id="TestContext" trace="true">     
  <endpoint id="traced" uri="activemq:topic:tracking"/>
Any help would be appreciated,Laji    
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message