On Tue, Apr 17, 2012 at 2:57 PM, mccabejj <mccab...@gmail.com> wrote: > Thanks Claus. Switching to ThreadPool instead of ThreadPoolProfile worked. > > Another quick (hopefully) question on Thread Pools in Camel. I think I've > observed that there are multiple ThreadPoolExecutor's created for each > route. It seems to be 1 for every WireTap present on the route. So if I > have 3 routes with 3 wiretaps each then there are 9 ThreadPoolExecutor > instances each with N number of available threads based on the profile. > > Is this expected? If so, I guess this is ok...? >
Yes by default the wire taps uses an exclusive thread pool. If you want to use a shared pool among the wire taps, you have to configure a <threadPool> and then assign that to each <wireTap> so they use the shared pool. On the other hand if you use <threadPoolProfile> then that is just a 'template' which has settings for creating new thread pools. Thats the difference between <threadPool> and <threadPoolProfile> > I think this was noted by someone else in the following post: > http://camel.465427.n5.nabble.com/WireTap-threads-number-keeps-on-growing-td5557827.html > /"I now understand that each route has its own pool. So I have (10 * > #schedules) threads of wiretap."/ > > Thanks again for the great community support. > > JM > > -- > View this message in context: > http://camel.465427.n5.nabble.com/WireTap-Defining-custom-ThreadPoolProfile-tp5645423p5646502.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/