title: How to wire tap inside a filter in camel
body: <p>I am new to camel and i have to wire tap a filter inside a route of a given camel application. The application only uses xml-flavor. Because i could add <code>&lt;wireTap&gt;</code> inside any tag (i get no error) i guess it should be possible?!
  Here is the route with wire tap:</p>
  
  <pre><code>&lt;route id="cep-output-postpaid" autoStartup="true"&gt;
          &lt;from
              uri="someUri" /&gt;
          &lt;log message="Output: ${body}" /&gt;
          &lt;to
              uri="file:someFile?fileName=result.csv&amp;amp;fileExist=Append"&gt;&lt;/to&gt;
          &lt;filter&gt;
              &lt;method ref="filterAfterDownTime" method="numberOfDaysToFilter(${body}, 100)" /&gt;
              &lt;process ref="processor1"&gt;&lt;/process&gt;
              &lt;throttle timePeriodMillis="10000"&gt;
                  &lt;constant&gt;40&lt;/constant&gt;
                  &lt;wireTap uri="direct:wireTap"/&gt;
                  &lt;to uri="someWsdlService"&gt;&lt;/to&gt;
              &lt;/throttle&gt;
              &lt;process ref="processor1"&gt;&lt;/process&gt;
          &lt;/filter&gt;
  
          &lt;log message="Done CEP Engine Output" /&gt;
      &lt;/route&gt;
  </code></pre>
  
  <p>The bean is referenced like this:</p>
  
  <pre><code>&lt;bean id="wireTap" class="somePackage.WireTap"&gt;&lt;/bean&gt;
  </code></pre>
  
  <p>And finally the wire tap class:</p>
  
  <pre><code>public class WireTap {
  
      public PcrfEdrPostpaidWireTap(){
          System.out.println("wiretap constructor called");
      }
  
      @Handler
      public void handleBody(String body){
          System.out.println("Wiretap says:" + body);
      }
  }
  </code></pre>
  
  <p>The problem is neither the constructor nor the method is called but the rout is running and produces its output.
  Any ideas? Thanks in advance.</p>
  
  <p><strong>Additional Questions:</strong> 
  How to use "seda" here? (i want to decouple the wiretap from the processing)
  and
  Is it possible to give the wiretap a parameter (e.g. path to a file for the wire tap)</p>