camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L F <l891...@yahoo.com.INVALID>
Subject Tracing messages including step information to a queue/topic
Date Tue, 17 Mar 2015 13:21:45 GMT
Hello, 
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://192.168.1.109:61610"/>        <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>
    <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="http://camel.apache.org/schema/blueprint" id="TestContext" trace="true">     
  <endpoint id="traced" uri="activemq:topic:tracking"/>
......</camelContext>
Any help would be appreciated,Laji    
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message