title: Configuring thread pool profile in spring boot camel application
body: <p>We are modernizing one of our applications and we decided to use Spring Boot together with Apache Camel.</p>
  <p>One of the configuration files from old version has something like this:</p>
  <pre><code>&lt;camel:threadPoolProfile id=&quot;myThreadPoolProfile&quot;
                  poolSize=&quot;10&quot; maxPoolSize=&quot;20&quot; maxQueueSize=&quot;1000&quot; rejectedPolicy=&quot;DiscardOldest&quot; /&gt;
  </code></pre>
  <p>What I saw in camel documentation on this <a href="https://camel.apache.org/camel-spring-boot/latest/spring-boot.html" rel="nofollow noreferrer">link</a> is that there is possibility to configure basically the same thing we have in old version. But then I got stuck on <code>id</code> field. It's missing, but there is property <code>camel.threadpool.config</code> which explanation sounds something I need (Adds a configuration for a specific thread pool profile (inherits default values)), but so far I am struggling to make a use of it. I tried something like this:</p>
  <pre><code>camel:
    threadpool:
      pool-size: 10
      max-pool-size: 20
      max-queue-size: 1000
      rejected-policy: discardoldest
      config:
        id: &quot;myThreadPoolProfile&quot;
  </code></pre>
  <p>I am getting following error:</p>
  <pre><code>Description:
  
  Failed to bind properties under 'camel.threadpool.config.id' to org.apache.camel.spring.boot.threadpool.CamelThreadPoolConfigurationProperties$ThreadPoolProfileConfigurationProperties:
  
      Reason: No converter found capable of converting from type [java.lang.String] to type [org.apache.camel.spring.boot.threadpool.CamelThreadPoolConfigurationProperties$ThreadPoolProfileConfigurationProperties]
  </code></pre>
  <p>I guess I don't understand how this spring boot configuration works.</p>