Configurate the max-pool-size with a spring boot implementation

Hey camunda community,
i implemented camunda with the spring boot integration and want to configurate the job execution. More specific, i want to increase the max-pool-size. Until now, i configured it via the bpm-platform.xml from tomcat. With the embedded engine, i can’t find a way to change it.

I added my own Configuration with the following beans:

@Bean
@Order(Ordering.DEFAULT_ORDER - 1)
public JobExecutionProperty myJobExecutionProperty() {

final JobExecutionProperty myJobExecutionProperty = new JobExecutionProperty();

myJobExecutionProperty.setCorePoolSize(10);
myJobExecutionProperty.setMaxPoolSize(10);
return myJobExecutionProperty ;
}

I am confused, why the JobExecutor does not have MaxPool and CorePool Size but the TaskExecutor does… To be safe, i added a bean for the TaskExecutor.
Anyway, my code does not work. It seems like, if i run the project, the Job Executor is created before the configuration is red.

Can somebody help me with that?

Thanks in advance
Jürgen

1 Like

Hi,

You can configure it in the application properties (1)

camunda.bpm:
   job-execution:
     max-pool-size: 10

(1): https://docs.camunda.org/manual/7.10/user-guide/spring-boot-integration/configuration/#camunda-engine-properties

1 Like