Spring boot Camel和SpringBoot的通用线程池配置

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

是否可以在我的应用程序中为Spring Boot和Camel配置公共线程池

下面是spring配置的池

@Bean(name = "threadPoolTaskExecutor")
    public ThreadPoolTaskExecutor threadPoolTaskExecutor() {
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
        executor.setCorePoolSize(corePoolSize);
        executor.setMaxPoolSize(maxPoolSize);        
        executor.initialize();
        return executor;
    }
也希望对驼峰路线使用相同的池

但无法设置为camelContext
ExecuteServiceManager

camelContext.setExecutorServiceManager(??);// unable to set above pool here. 

有人能帮我做上面的事吗?有人能帮我做上面的事吗?