Uploaded image for project: 'Red Hat build of Apache Camel for Spring Boot'
  1. Red Hat build of Apache Camel for Spring Boot
  2. CSB-5816

The option sourceLocationEnabled="true" set to CamelContext in spring xml does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • CSB-4.next
    • CSB-4.4.2
    • Camel
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate
    • Very Likely
    • 0

      The option sourceLocationEnabled="true" set to CamelContext in spring xml does not work.

      For instance:

      <camelContext messageHistory="true" sourceLocationEnabled="true" trace="true" xmlns="http://camel.apache.org/schema/spring"> 

      it did not work. I was getting:

      Message History (source location is disabled)
      ---------------------------------------------------------------------------------------------------------------------------------------
      Source                                   ID                             Processor                                          Elapsed (ms)
                                               IssuedDocumentsNew/IssuedDocum from[jetty:http://localhost:9902/rest/issueddocume           14
                                               IssuedDocumentsNew/logBody1    log                                                           0
                                               IssuedDocumentsNew/to1         http://localhost:9001/service                                 0 

      The source location was disabled and not shown.

      However, if the camel on springboot application uses Java DSL, setting config option:

      camel.springboot.source-location-enabled=true 

      to application.properteis worked fine then.

       

      I also tested with upstream 4.8.0 and the issue persists.

       

       

              Unassigned Unassigned
              rhn-support-qluo Joe Luo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: