Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-21 Thread Claus Ibsen
Set scheduled="true" on the On Fri, Apr 21, 2017 at 4:03 PM, Robson Vargas Farias wrote: > Right, but I still don't understood the point, sorry I'm kindly newer in > Camel. as per I read on Camel documentation, the regular threadPool kind of > "extend" from a threadPoolProfile" > > "Create custo

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-21 Thread Robson Vargas Farias
Right, but I still don't understood the point, sorry I'm kindly newer in Camel. as per I read on Camel documentation, the regular threadPool kind of "extend" from a threadPoolProfile" "Create custom thread pool You can also use the tag in Spring XML to create a specific thread pool (eg ExecutorSe

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-21 Thread Claus Ibsen
The thread pool must be a scheduled thread pool and not a regular pool On Fri, Apr 21, 2017 at 3:50 PM, Robson Vargas Farias wrote: > Hi Claus, thanks for the support. So, actually as I mentioned, my query is: > "Why the throttle works only with ThreadPoolProfile and not with a > ThreadPool", in

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-21 Thread Robson Vargas Farias
Hi Claus, thanks for the support. So, actually as I mentioned, my query is: "Why the throttle works only with ThreadPoolProfile and not with a ThreadPool", in your sample, you used a threadpoolprofile and it´s fine, it works for me too. But, try to run that test with a threadpool: http://www.spr

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-21 Thread Claus Ibsen
I created an unit test that cannot reproduce the problem you have https://github.com/apache/camel/commit/9b3e7ebe58ae3e569d3869c476642937c09d0a0c On Fri, Apr 21, 2017 at 10:36 AM, Claus Ibsen wrote: > It ought to work as its using the same code the other EIPs would do, > can you provide a very sm

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-21 Thread Claus Ibsen
It ought to work as its using the same code the other EIPs would do, can you provide a very small sample project that reproduces this. On Thu, Apr 20, 2017 at 9:09 PM, Robson Vargas Farias wrote: > I've updated to the latest camel-x version which is 2.18.3 and the error > still persists. > > S

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-20 Thread Robson Vargas Farias
I've updated to the latest camel-x version which is 2.18.3 and the error still persists. Should the threadPool be declared in other place than into the camelContext ? "..because of ExecutorServiceRef my_thread_pool not found in registry or as a thread pool profile." 2017-04-20 10:44 GMT-03:00 Cl

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-20 Thread Claus Ibsen
That is very old, its likely/possible fixed on newer version. So I suggest to try upgrading or build a new sample project using latest release and see if it works there. Knowing something is still not working in latest release brings attention to us. Otherwise we dont have the time to look into th

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-20 Thread Robson Vargas Farias
Hi Claus, currently using 2.13.2 - and no, did not try other version. 2017-04-20 10:33 GMT-03:00 Claus Ibsen : > What version of Camel do you use, and have you tried with a newer version > > On Thu, Apr 20, 2017 at 3:29 PM, Robson Vargas Farias > wrote: > > Hi, > > > > Can you help me where is m

Re: throttle executorServiceRef not recognizing threadPool but only threadPoolProfile

2017-04-20 Thread Claus Ibsen
What version of Camel do you use, and have you tried with a newer version On Thu, Apr 20, 2017 at 3:29 PM, Robson Vargas Farias wrote: > Hi, > > Can you help me where is my miss? > > I've a camel context configured with a route containing a throttle which is > pointing (ref) to a threadPool: > >