title: JBoss ESB pipeline interceptor triggers multiple times
body: <p>I am working on a project that "sniffs" (intercepts) all messages that are being send through ESB.</p>
  
  <p>I use JBoss AS 6 with ESB 4.11. I am sending both esb-aware and JMS messages and everything works, but it seems that my interceptor intercepts every message mulptiple times.</p>
  
  <p>At the moment, the Interceptor class just prints the concent + some other stuff to console. When I send a message, it displays the sent message multiple times (3 times to be more specific).</p>
  
  <p>So my question is: <strong>Why?</strong>. Is this normal behavior? I have no clue where the mistake could be. I think that is could be one of these two options:</p>
  
  <p>1) I have some error in my sending class, but I dont think thats the issue, since I use simply one serviceInvoker and my code is very similar to sample quickstarts. Standard output from gateway listeners also indicate that message is sent only ones...
  2) Pipeline Interceptor intercepts the message multiple times, every time at a different stage of the pipeline. But how to test if this is the issue?</p>
  
  <p>My properties file section for interceptors looks like this:</p>
  
  <pre><code>&lt;properties name="interceptors"&gt;
      &lt;property name="org.jboss.soa.esb.pipeline.failure.interceptors" value="interceptor.Interceptor"/&gt;
        &lt;property name="org.jboss.soa.esb.pipeline.instantiate.interceptors" value="interceptor.Interceptor"/&gt;
      &lt;property name="org.jboss.soa.esb.pipeline.start.interceptors" value="interceptor.Interceptor"/&gt;
      &lt;property name="org.jboss.soa.esb.pipeline.end.interceptors" value="interceptor.Interceptor"/&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I tried to delete some of the properties but then it either doesnt intercept anything at all or it triggers multiple times!</p>
  
  <p>Thanks for any tips!</p>