I aslo tried to rewrite the route as:
<route id="processBatch" errorHandlerRef="DLQ_solr_batches">
<from uri="activemq:queue:solr-batches"/>
<onException>
<exception>java.lang.Exception</exception>
<choice>
<when>
<simple>${headers.batch_size} > 1</simple>
<handled><constant>true</constant></handled>
<to uri="direct:splitAndResubmit"/>
</when>
<otherwise>
<handled><constant>false</constant></handled>
</otherwise>
</choice>
</onException>
<to uri="http:..."/>
</route>
But this is not conform to xml schema :-(
--
View this message in context:
http://camel.465427.n5.nabble.com/Conditional-route-scoped-onException-tp5731725p5731728.html
Sent from the Camel - Users mailing list archive at Nabble.com.