camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From risen <>
Subject camel2.11.0 threads
Date Fri, 06 Sep 2013 02:02:44 GMT
I'm new in camel. 
<threadPool id="threadPcSend" poolSize="8" 
        threadName="pcSend" maxPoolSize="8" maxQueueSize="1024" 
        keepAliveTime="0" />

<camel:route id="pcSendRoute">
        <camel:from uri="timer://pcSendTimer?period=2000&amp;delay=5000" />
        <threads executorServiceRef="threadPcSend">
                <camel:bean ref="PcSend" method="update" />
when the "update" method runs in 2s,the eight threads can run every 2s. 
but when anyone of the threads run over 2s,others will wait until the thread
is over. 
How can i make the threads work every 2s whether anyone is working or not. 
Thank you so much!

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message