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

Setup default values for thread-connected properties in WebSocket component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.0
    • 2.18.0
    • camel-websocket
    • None
    • 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

            acosentino Andrea Cosentino
            mbasovni Martin BasovnĂ­k
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: