title: Apache Camel - Triggering a task on startup to run only once
body: <p>I am working on a Java project using Camel &amp; Spring. We would like to trigger an initialize method on a singleton bean after Spring finished doing its thing and Camel has finished building all routes.</p>
  
  <p>We cant call the method at class creation time as it has dynamic linkings to other classes that it picks up from the @Component spring annotation and we dont know when/if these classes have been loaded yet to actually run the init method as part of a constructor. </p>
  
  <p>How can I go about invoking a method or methods to run only once right after Camel startup is complete? </p>
  
  <p>Thanks!</p>