title: Use a method as producer in camel route
body: <p>I have method which every now and then generates a string. I would like to register method as uri and produce a exchange method which will be used as input for a route.</p>
  
  <p>The method is call by a different class</p>
  
  <pre><code>SampleClass sc = new SampleClass();
  sc.sampleMethod("Hello");
  </code></pre>
  
  <p>Eg:</p>
  
  <pre><code>public class SampleClass{
      @Produce(uri = "direct:consumerMethod")
      ProducerTemplate producer;
      public sampleMethod(Object obj){
            producer.sendBody(object);
      }
  }
  </code></pre>
  
  <p>The route is defined as below:</p>
  
  <pre><code>@Override
      public void configure() {
          from("direct:consumerMethod").process(new GenerateD());
      }
  </code></pre>
  
  <p>But the route doesnt call GenerateD class when i produce using the sampleMethod. Is this not feasible or am i doing something wrong?</p>