title: Apache Camel RouteBuilder configure method
body: <p>I have some existing web application program develop by pass senior and now I am supporting and study on it. I tried to read many articles from internet about the Apache Camel, but still cant get the point.</p>
  
  <p>Let me show some Class code that extends <code>RouteBuilder</code>:</p>
  
  <p>This is from <code>FserviceRouteBuilder</code> class:</p>
  
  <pre><code>@Override
  public void configure() throws Exception {
      log.debug( "FServiceRouteBuilder configure" );
      errorHandler( deadLetterChannel( ).maximumRedeliveries( 0 ) );
  
      from( this.from ).process( requestProcessor ).process(
              transformProcessor );
  
      log.debug( "FServiceRouteBuilder configure end" );
  
  }
  </code></pre>
  
  <p>And this is from <code>MyBillRouteBuilder</code> :</p>
  
  <pre><code>@Override
  public void configure() throws Exception {
  
      log.debug( "&gt;&gt;MybillRouteBuilder configure" );
      errorHandler( deadLetterChannel( ).maximumRedeliveries( 0 ) );
  
      from( this.from ).process( requestProcessor ).to(
              "direct:_mybill-process-response" );
  
      if ( transformProcessor != null ) {
          from( "direct:_mybill-process-response" ).process(
                  transformProcessor );
      }
  
      log.debug( "&gt;&gt;MybillRouteBuilder configure end" );
  
  }
  </code></pre>
  
  <p>What I saw from the different is, the <code>MyBillRouteBuilder</code> use the <code>to()</code> method, which is <code>to( "direct:_myebill-process-response" )</code> , but <code>FServiceRouteBuilder</code> didn't do in that way.</p>
  
  <p>But both of them work. I tried to change the <code>FServiceRouteBuilder</code> to follow to use the <code>to()</code> method, and its work as well.</p>
  
  <p>Both of them also calling and processing particular web service with SOAP method.</p>
  
  <p>May I know what is the <code>to()</code> actually doing? And what is the different to use it and without it?</p>
  
  <p>Sorry I am very very new to this.</p>