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

Setup default values for thread-connected properties in WebSocket component

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.0
    • Fix Version/s: 2.18.0
    • Component/s: camel-websocket
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If you do not set properties minThreads or maxThreads or method getThreadPool() returns null the you will get RuntimeCamelException and websocket cosumer will not be created. These attributes were not required in previous versions of camel. Websocket component now uses Jetty 9. If these properties are really required why do not use some default values?

      e.g.

      minThreads = 1
      maxThreads = Runtime.getRuntime().availableProcessors()
      

      https://github.com/apache/camel/blob/master/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/WebsocketComponent.java#L341

        Attachments

          Activity

            People

            • Assignee:
              ancosen Andrea Cosentino
              Reporter:
              mbasovni Martin Basovník
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: