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

Validate that onException,onCompletion etc must be configured at top-level in the rotues

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.12.0
    • camel-core
    • None
    • Unknown

    Description

      Some EIPs must be configured at top-level like onException, transacted, interceptors, on completion, etc.

      Though in the XML DSL and Java DSL there is "holes" so you may configure them in nested EIPs eg inside a splitter etc.

      We should validate that this is not allowed.

      In Camel 3.0 the DSL API can be changed to ensure the configuration can only happen at top-level. But in 2.x we would need to keep the DSL API stable and instead validate if mis-configured.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: