Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-497

fabric tracer seems to get the wrong nodeId when generating trace messages around the CBR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.7.1-fuse-00-27
    • None
    • None

      e.g. with the following route (in the camel-activemq archetype), when tracing in IDE it tends to show "choice1", "when1" , "when1" for the toNodeId trace messages; rather than showing "log2", "to2" etc.

      Also it seems like Camel doesn't auto-generate the IDs of when/otherwise nodes.

      <beans xmlns="http://www.springframework.org/schema/beans" 
      	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd">
      
        <broker brokerName="CxfPayloadDemo" persistent="false" useJmx="true" xmlns="http://activemq.apache.org/schema/core">
            <transportConnectors>
                <transportConnector name="openwire" uri="tcp://localhost:51616"/>
                <transportConnector name="vm" uri="vm:local"/>
            </transportConnectors>
        </broker>
          
        <!-- Configure Camel ActiveMQ component to use the preceding ActiveMQ broker -->
        <bean class="org.apache.activemq.camel.component.ActiveMQComponent" id="activemq">
            <property name="brokerURL" value="vm:local"/>
        </bean>
          
        <camelContext xmlns="http://camel.apache.org/schema/spring" trace="true">
          <package>org.fusesource.video.idebrowse</package>
          <route id="IdeBrowse">
              <from uri="activemq:queue:conference.talks"/>
              <choice>
                  <when>
                      <xpath>/talk/venue = 'London'</xpath>
                      <log message="UK Conference"/>
                      <to uri="activemq:queue:talk.uk"/>
                  </when>
                  <otherwise>
                      <log message="Other venues"/>
                      <to uri="activemq:queue:talk.other"/>
                  </otherwise>
              </choice>
          </route>
      </camelContext>
      
      </beans>
      

            cibsen@redhat.com Claus Ibsen
            jastrachan_jira James Strachan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: