The Spring DSL is something like the following:

<camel:route id="routeId">
        <camel:from uri="direct:start" />
        
        <camel:transacted />

        <camel:onException >
        
<camel:exception>org.apache.camel.component.http.HttpOperationFailedException</camel:exception>
                <camel:redeliveryPolicy disableRedelivery="false" 
redeliveryDelay="10"
retryAttemptedLogLevel="WARN"/>
                <camel:rollback markRollbackOnly="true" />
        </camel:onException>
        
        <camel:aggregate strategyRef="MyAggregationStrategy">
                <camel:correlationExpression>
                        <camel:constant>true</camel:constant>
                </camel:correlationExpression>
                <camel:completionTimeout>
                        <camel:simple>5000</camel:simple>
                </camel:completionTimeout>
                <camel:completionSize>
                        <camel:simple>5</camel:simple>
                </camel:completionSize>
                
                <camel:setHeader headerName="CamelHttpMethod">
                        <camel:constant>POST</camel:constant>
                </camel:setHeader>
                <camel:to 
uri="http://thisurldoesnotexists?throwExceptionOnFailure=true";
/>
                
        </camel:aggregate>
</camel:route>



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

Reply via email to