This content has been marked as final.
Show 5 replies
-
1. Re: How to setThreadName() for .threads() in routeBuilder?
njiang Aug 17, 2012 12:14 AM (in response to mikek753_michael.korolyov)I just had a quick look at the thread DSL, and found it doesn't provide the thread method that you want, and the thread() with the parameter doesn't add the output of the new created ThreadDefinition which is definitely wrong.
I created a JIRA and will submit a quick fix for it.
-
2. Re: How to setThreadName() for .threads() in routeBuilder?
mikek753_michael.korolyov Aug 17, 2012 2:35 AM (in response to njiang)thank you.
looking forward for extra methods
-
3. Re: How to setThreadName() for .threads() in routeBuilder?
davsclaus Aug 17, 2012 8:43 AM (in response to mikek753_michael.korolyov)There is methods to do this already
from("direct:foo") // using the builder style .threads().poolSize(5).maxPoolSize(10).threadName("myPool") .to("mock:result");
-
4. Re: How to setThreadName() for .threads() in routeBuilder?
mikek753_michael.korolyov Aug 17, 2012 8:55 PM (in response to davsclaus)yes, it works - thanks.
Any reasons this new Name isn't shown in JConsole / JMX under Camel Pools?
It's shown as threads# and only Policy name attribute is shown as that set Name.
I see that new name is appended Ok in YourKit and in Eclipse Debugger.
-
5. Re: How to setThreadName() for .threads() in routeBuilder?
njiang Aug 18, 2012 3:35 AM (in response to mikek753_michael.korolyov)what kind of the camel thread pool that you are using?
Maybe you can send us a picture of your JMX console.