[
https://issues.apache.org/jira/browse/CAMEL-9951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Basovník updated CAMEL-9951:
-----------------------------------
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.
{code:java}
minThreads = 1
maxThreads = Runtime.getRuntime().availableProcessors()
{code}
https://github.com/apache/camel/blob/master/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/WebsocketComponent.java#L341
was:
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.
{code:java}
minThreads = 1
maxThreads = Runtime.getRuntime().availableProcessors()
{code}
> Setup default values for thread-connected properties in WebSocket component
> ---------------------------------------------------------------------------
>
> Key: CAMEL-9951
> URL: https://issues.apache.org/jira/browse/CAMEL-9951
> Project: Camel
> Issue Type: Bug
> Components: camel-websocket
> Affects Versions: 2.18.0
> Reporter: Martin Basovník
> Assignee: Andrea Cosentino
>
> 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.
> {code:java}
> minThreads = 1
> maxThreads = Runtime.getRuntime().availableProcessors()
> {code}
> https://github.com/apache/camel/blob/master/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/WebsocketComponent.java#L341
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)