Thanks for the help, this is working now.
I made a change like :
<spring:bean name="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
<spring:property name="initialRedeliveryDelay" value="5000"/>
<spring:property name="maximumRedeliveries" value="3"/>
</spring:bean>
The max redeliveries on the AMQ connector didnt seem to work. Plus added in the transaction on the endpoint.
UWD wrote:
Don't think it's possible to get redelivering functionality without transaction support.
When you do a rollback(for example throw an exception from code) the transaction will be rolled back, and then the redelivery will be done.