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

Avoid creating an empty default Camel context in Camel CDI for empty deployments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.17.1, 2.18.0
    • camel-cdi
    • None
    • Unknown

    Description

      Camel CDI automatically deploys a Camel context to avoid user having to explicitly declare one.

      However, if the user mis-configures her/his application so that there is no route nor any other active components configured (like consumers), that leads to having an empty Camel context started.

      Besides, some runtimes automatically deploy the Camel CDI extension even in the case the user does not intent to use it, which leads to having an empty Camel context started.

      In both cases, the Camel CDI extension could rely on an heuristic (no routes, no consumers, ...) to avoid deploying that empty Camel context.

      Attachments

        Activity

          People

            antonin.stefanutti Antonin Stefanutti
            antonin.stefanutti Antonin Stefanutti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: