Hi  , I have any issue with the Executorfactory and Executor . 

I have simple JBI comonent . In this JBI component I am using the default
Executorfactory  which i have coded as follows:

ComponentContextImpl context = (ComponentContextImpl) getContext();
 ExecutorFactory factory = context.getContainer().getExecutorFactory();
  executor = factory.createExecutor("component." +
context.getComponentName());

I am using the above created executor  to run myown runnable object mfr  as
follows:

executor.execute(mfr)

The above line calls mfr.start() method and spans a new thread of execution. 
But, when I  use the same line for 5th time, new thread is not being
spanned(start method is not being called).

While trying to find the reason for this , I found that servicemix creates
only 4 threads for every JBI component by default. So, the first 4 requests
are sucessful . when I request for 5th time , no thread is free in the pool
. So a new thread is not being created to handle my job. 


Increasing the threadpool size solves my problem. But  i want to know 
whether it is possible to find 
whether a new request for a thread  is sucess or not . 
Please tell me how to solve this problem with out increasing the pool size.

I am using servicmix 3.2 version.

-- 
View this message in context: 
http://www.nabble.com/Problems-with-Executor-tp15090865s12049p15090865.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to