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

camel-jbang - --max-* options with --dev fails to terminate the Camel context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • 4.7.0
    • 4.8.0
    • camel-jbang
    • None
    • Unknown

    Description

      When we'd like to run a Camel script once and then immediately self-terminate it, we'd run the command:

      camel run hello.java --max-messages=1
      

      and it works just as expected. However, when we add --dev to the above command, it starts to fail to terminate the context and thus the process.

      camel run hello.java --max-messages=1 --dev
      

      The same issue goes for --max-idle-seconds and --max-seconds as well.

      Normally it wouldn't be an issue because it doesn't make much sense to use --max-* and --dev at the same time, but it becomes an issue when we run a Camel script on VS Code, where the Debug Adapter for Apache Camel always attaches --dev to the launcher command.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            tadayosi Tadayoshi Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: