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 <[email protected]> wrote: > 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 Claus Ibsen <[email protected]>: > >> 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 this >> ourselves first when users are using very old versions of Camel. >> >> On Thu, Apr 20, 2017 at 3:37 PM, Robson Vargas Farias >> <[email protected]> wrote: >> > Hi Claus, currently using 2.13.2 - and no, did not try other version. >> > >> > 2017-04-20 10:33 GMT-03:00 Claus Ibsen <[email protected]>: >> > >> >> 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 >> >> <[email protected]> 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: >> >> > >> >> > <camel:camelContext id="camel-server" useMDCLogging="true" >> >> > allowUseOriginalMessage="false"> >> >> > >> >> > >> >> > <!-- thread pools --> >> >> > >> >> > <camel:threadPool id="my_thread_pool" >> >> > poolSize="1" >> >> > maxPoolSize="4" >> >> > maxQueueSize="100" >> >> > threadName="my_thread_pool" keepAliveTime="0" >> >> > rejectedPolicy="DiscardOldest" timeUnit="SECONDS" /> >> >> > >> >> > .. >> >> > >> >> > >> >> > <camel:route id="my_route"> >> >> > <camel:from ref="mq_endpoint" /> >> >> > <camel:throttle timePeriodMillis="1000" executorServiceRef="my_thread_ >> >> pool"> >> >> > .. >> >> > >> >> > >> >> > but, when I start my application I got below error: >> >> > >> >> > Caused By: java.lang.IllegalArgumentException: ExecutorServiceRef >> >> > my_thread_pool not found in registry or as a thread pool profile. >> >> > >> >> > >> >> > >> >> > If I change the throttle from a threadPool to a threadPoolProfile it >> >> works. >> >> > So, why it is not working with a threadPool? >> >> > >> >> > Thanks. >> >> >> >> >> >> >> >> -- >> >> Claus Ibsen >> >> ----------------- >> >> http://davsclaus.com @davsclaus >> >> Camel in Action 2: https://www.manning.com/ibsen2 >> >> >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 >> -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
