Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19846

camel-yaml-dsl: Support setting MessageHistoryFactory.setCopyMessage(true) from YAML DSL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.1.0
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      Support setting `MessageHistoryFactory.setCopyMessage(true)` from YAML DSL. I'm on a case to do it from YAML DSL, but it seems other DSLs also don't yet directly support it other than providing a separate property file. Turned out XML DSL already supports it with beans. For YAML DSL the beans registration is too late for comelContext configuration ATM. See comments.

      - beans: 
        - name: messageHistoryFactory
          type: org.apache.camel.impl.engine.DefaultMessageHistoryFactory
          properties: 
            copyMessage: true
      
      - route: 
          messageHistory: true
          from: 
            uri: "timer:yaml"
            parameters: 
              period: "3000"
            steps: 
              - to: 
                  uri: "log:test"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            igarashitm Tomohisa Igarashi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: