title: Apache Camel POJO Bean Processor Singleton or Prototype?
body: <p>I'm using Camel's spring DSL to build routes and I'm using my POJO bean as a processor.</p>
  
  <p>Initially, I as doing:</p>
  
  <pre><code>&lt;bean ref="myPojoBeanProcessor"/&gt;
  </code></pre>
  
  <p>where, 'myPojoBeanProcessor' was defined as a bean in my spring context.</p>
  
  <p>Then, I switched to:</p>
  
  <pre><code>&lt;bean beanType="com.mycompany.transformation.MyPojoBeanProcessor"/&gt;
  </code></pre>
  
  <p>The Java DSL equivalent would be, I think:</p>
  
  <pre><code>from("xxx").bean(MyPojoBeanProcessor.class).xxx
  </code></pre>
  
  <p>I'm wondering if with the later approach, a bean object would be instantiated with every request or would the bean instance be cached and used as a singleton (like the default in spring).</p>
  
  <p>I was unable to find an answer in the camel documentation or on google. Does anyone know the answer to this question?</p>