camel-users mailing list archives

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

camel-route: 
<camel:route id="pcSendRoute">
        <camel:from uri="timer://pcSendTimer?period=2000&amp;delay=5000" />
        <threads executorServiceRef="threadPcSend">
                <camel:bean ref="PcSend" method="update" />
        </threads>
</camel:route>
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: http://camel.465427.n5.nabble.com/camel2-11-0-threads-tp5738811.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message