10-10-2012 08:09 PM
<bean id="jobExecutor" class="org.activiti.engine.impl.jobexecutor.JobExecutor">
<property name="lockTimeInMillis" value="2700000"/>
<property name="corePoolSize" value="15"/>
<property name="maxPoolSize" value="30"/>
</bean>When I deployed the workflow, I observed that 15 process instances were created within first 15 seconds. However, remaining five instances were not started even after the 15 instances previously started finished executing.10-11-2012 09:01 AM
/**
* <p>Strategy for handling jobs that were acquired but cannot be
* executed at this point (queue-size exceeded).</p>
*
* @author Daniel Meyer
*/
public interface RejectedJobsHandler {
public void jobsRejected(JobExecutor jobExecutor, List<String> jobIds);
}
10-14-2012 07:04 PM
By default (CallerRunsRejectedJobsHandler), the calling thread is used to run the job that should have been run by the pool. In most cases, this is the job-aquisition-thread.Does this mean that when the thread pool is exhausted, the job-acquisition-thread is forced to execute a job and therefore, any further jobs are not added to the pool until the aquisition-thread is freed up again.
10-15-2012 03:48 AM
10-15-2012 01:23 PM
public class MyRejectedJobsHandler implements RejectedJobsHandler {
public void jobsRejected(JobExecutor jobExecutor, List<String> jobIds) {
jobExecutor.executeJobs(jobIds);
}
}10-16-2012 05:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.