Spring boot Camel和SpringBoot的通用线程池配置
是否可以在我的应用程序中为Spring Boot和Camel配置公共线程池 下面是spring配置的池Spring boot Camel和SpringBoot的通用线程池配置,spring-boot,apache-camel,threadpool,Spring Boot,Apache Camel,Threadpool,是否可以在我的应用程序中为Spring Boot和Camel配置公共线程池 下面是spring配置的池 @Bean(name = "threadPoolTaskExecutor") public ThreadPoolTaskExecutor threadPoolTaskExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePo
@Bean(name = "threadPoolTaskExecutor")
public ThreadPoolTaskExecutor threadPoolTaskExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(corePoolSize);
executor.setMaxPoolSize(maxPoolSize);
executor.initialize();
return executor;
}
也希望对驼峰路线使用相同的池
但无法设置为camelContextExecuteServiceManager
camelContext.setExecutorServiceManager(??);// unable to set above pool here.
有人能帮我做上面的事吗?有人能帮我做上面的事吗?