I am using spring integration message-driven-channel-adapter to consume messages from Tibco queue and have defined our own error channel to handle any errors.
The issue which I am facing with this set up is that the messages consumed from queue is not acknowledged automatically if there is any run time exception occurs, and the message is redelivering and it goes into a loop. And when I set the acknowledge mode as "auto" (acknowledge="auto") , then message process is stopping gracefully if there is any runtime exception. But as per my understanding if we are not defining the acknowledge mode, spring will default it to "auto". Can someone please help me to understand what is the issue with the set up?
<!--Consumer set up -->
<int-jms:message-driven-channel-adapter id="inputChannel" destination="inputQueue"
connection-factory="authConnFactory"
error-channel="customErrorChannel"/>
<!-- Error channel -->
<int:chain input-channel="customErrorChannel" >
<!-- Inserting into table-->
<int:recipient-list-router>
<int:recipient channel="publishToexceptionQueue"/>
</int:recipient-list-router>
</int:chain>