title: Camel route inside routeContext executing infinitely
body: <p>My Apache camel project is starting to have a pretty good structure but I'm getting stuck because my routes inside my routeContext execute infinitely. All my routes use the SQL Component and I want all of my routes only to execute once.</p>
  
  <p>What I am finding is that when I have two routes in my routeContext both routes only execute once but as soon as I add a third (no matter what route that third is), camel starts to execute all the routes infinitely. All of my routes lead to sql inserts so having the same route run more than once causes a duplicate key error.</p>
  
  <p>I thought it might be an error in one of my routes but I've tried switching the order around etc and everytime I switch from two to three routes in my routeContext the problem comes up again. Tonight I also tried to separate the routes out into different route contexts but it didn't change anything. I also took out all error handlers to make sure it wasn't related to them.</p>
  
  <p>I'm starting to think this is a bug with the sql component in Camel. What are everyone's thoughts? Should I switch to a different component (for example jdbc) ? </p>
  
  <p>Here is what my xml files look like...</p>
  
  <p>camel-context</p>
  
  <pre><code>&lt;import resource="camel-routes.xml"/&gt;
  &lt;import resource="database.xml"/&gt;       
  
  &lt;camel:camelContext trace="true"&gt;   
    &lt;camel:propertyPlaceholder location="classpath:sql.properties" id="placeholder"/&gt;
    &lt;camel:routeContextRef ref="sourceToStaging"/&gt;
  &lt;/camel:camelContext&gt;
  </code></pre>
  
  <p>camel-routes</p>
  
  <pre><code>&lt;routeContext id="sourceToStaging" xmlns="http://camel.apache.org/schema/spring"&gt;
  &lt;route id="processTypeOption-route"&gt;    
      &lt;from uri="sourceSql:{{sql.selectTypeOption}}"/&gt;
      &lt;transacted/&gt;           
      &lt;to uri="targetSql:{{sql.insertTypeOptionOrig}}"/&gt;                          
      &lt;to uri="targetSql:{{sql.insertTypeOptionStg}}"/&gt;                       
      &lt;to uri="controlbus:route?routeId=processTypeOption-route&amp;amp;action=stop&amp;amp;async=true"/&gt;
  &lt;/route&gt;
  
  &lt;route id="processProductSize-route"&gt;    
      &lt;from uri="sourceSql:{{sql.selectProductSize}}"/&gt;
      &lt;transacted/&gt;           
      &lt;to uri="targetSql:{{sql.insertProductSizeOrig}}"/&gt;                             
  
      &lt;to uri="targetSql:{{sql.insertProductSizeStg}}"/&gt;                     
      &lt;to uri="controlbus:route?routeId=processProductSize-route&amp;amp;action=stop&amp;amp;async=true"/&gt;
  &lt;/route&gt;                
  &lt;route id="processStatus-route"&gt;    
      &lt;from uri="sourceSql:{{sql.selectStatus}}"/&gt;
      &lt;transacted/&gt;           
      &lt;to uri="targetSql:{{sql.insertStatusOrig}}"/&gt;                              
      &lt;to uri="targetSql:{{sql.insertStatusStg}}"/&gt;                       
      &lt;to uri="controlbus:route?routeId=processStatus-route&amp;amp;action=stop&amp;amp;async=true"/&gt;
  &lt;/route&gt;                        
  &lt;/routeContext&gt; 
  </code></pre>
  
  <p>Can anyone please assist. Thks</p>