Configuration for having custom thread pool of routes in camel
Issue
-
Whenever we create a Camel routes in a JBoss Fuse Bundle program, we see in the Fuse Logs that this is executed by a specific thread everytime, let us say Thread #107 for example. Is there any configuration we can make in the JBoss Fuse platform so that it creates a thread pool of routes and the defined Camel route of mine is executed automatically by a different thread each time?
-
To use more than 20 threads in a route we used the fowling command and seems it runs as expected.
context.getExecutorServiceManager().getDefaultThreadPoolProfile().setMaxPoolSize(300);
just before
ExecutorService executorService = new ThreadPoolBuilder(context).poolSize(5).maxQueueSize(100).build("CustomThreadPool");
Do you think is safe?
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Camel
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
