camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robson Vargas Farias <robsonvargasfar...@gmail.com>
Subject throttle executorServiceRef not recognizing threadPool but only threadPoolProfile
Date Thu, 20 Apr 2017 13:29:29 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message