Why don't you just make your processor call a recursive function ? 

A processor isn't made to be able to invoke another processor, you need to
make it recursive with your route


<bean id="myrecursivebean" class="..."/>

<camelContext errorHandlerRef="errorHandler"
xmlns="http://camel.apache.org/schema/spring";>
    <route>
        <from uri="direct:a"/>
        <choice>
            <when>
                <simple>$in.header.continue = 'true'</simple>
                <to uri="myrecursivebean"/>
                <to uri="direct:a"/>
            </when>
            <otherwise>
                <to uri="direct:b"/>
            </otherwise>
        </choice>
    </route>
</camelContext>



--
View this message in context: 
http://camel.465427.n5.nabble.com/recursion-with-Camel-tp5730193p5730224.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to