Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to configure 2.6 spring: Failed to create route route2 at:
    text
    copied!<p>I'm trying to upgrade from Camel 2.0 to 2.6</p> <p>I have this in my applicationContext-camel.xml file...</p> <pre><code>&lt;camel:route &gt; &lt;camel:from uri="transactionSaleBuffer" /&gt; &lt;camel:policy ref="routeTransactionPolicy"/&gt; &lt;camel:transacted ref="transactionManagerETL" /&gt; &lt;camel:to uri="detailFactProcessor" /&gt; &lt;/camel:route&gt; </code></pre> <p>by adding in the two lines in the middle (policy and transacted) I get the exception...</p> <blockquote> <p>Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route2 at: >>> From[transactionSaleBuffer] &lt;&lt;&lt; in route: Route[[From[transactionSaleBuffer]] -> [Tr ansacted[ref:trans... because of Route route2 has no output processors. You need to add outputs to the route such as to("log:foo").</p> </blockquote> <p>I can see this is because the Camel class RouteDefinition.java makes a call to ProcessorDefinitionHelper.hasOutputs(outputs, true).</p> <p>This passes in an array of one Object ([Transacted[ref:transactionManagerETL]])</p> <p>This one object has one two children</p> <pre><code>[Transacted[ref:transactionManagerETL]] CHILD-[Policy[ref:routeTransactionPolicy], CHILD-To[detailFactProcessor] </code></pre> <p>The Policy child has no outputs, so the exception is thrown.</p> <p>Yet I don't know how to add a child, my XML above matches the schema.</p> <p>Maybe I'm missing something else? </p> <p>My setup matches the example...<a href="http://Camel%201.x%20-%20JMS%20Sample" rel="nofollow">Apache Camel: Book in One Page</a> (See section: Camel 1.x - JMS Sample)</p> <p>Can anyone please help me out. Thanks! Jeff Porter</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload