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
