Re: Using ExecutorService from JEE server

2018-06-24 Thread Darius Cooper
Actually, looking at the comments in the Camel code I wonder if I should simply implement a custom ThreadPoolFactory rather than an ExecutorServiceManager. On Fri, Jun 22, 2018 at 6:52 PM Darius Cooper wrote: > Zoran, thanks for the great answer. > > > I got it working by implementing a proof-of

Re: Using ExecutorService from JEE server

2018-06-22 Thread Darius Cooper
Zoran, thanks for the great answer. I got it working by implementing a proof-of-concept ExecutorServiceManager and delegating all the methods that return either ExecutorService of ScheduledExecutorService Thinking about how this should look in production… 1. get/set ThreadPoolFactory: I assu

Re: Using ExecutorService from JEE server

2018-05-04 Thread Zoran Regvart
Hi Darius, you need to implement ExecutorServiceManager[1] interface and delegate to ExecutorService you looked up in Liberty and set that implementation on CamelContext via setExecutorServiceManager[2] method. If you're using Camel Spring XML support and ExecutorServiceManager is available in the

Using ExecutorService from JEE server

2018-05-03 Thread Darius Cooper
The Camel In Action book says: "When you need to use a different thread pool provider (for example, a provider from a Java EE server), you can create a custom ExecutorServiceManager to work with the provider. " On IBM Liberty, by turning on the feature "concurrent/1.0" one can get an ExecutorServ