I have a transactional poller periodically polling messages from a jdbc-backed queue-channel.
I have 2 goals:
1) prevent message loss from my source in case the process dies in the middle of processing a message.
2) prevent a single misformatted message from bringing down the whole process by discarding the related exception to the error channel (and moving on to the next message)
My Question:
How can I setup (ideally through dsl) my transactional poller so that it discards a faulty message to the error channel without rolling back the transaction ?
(so as to prevent an infinite loop where the same message is replayed again and again).
Thank you very much in advance for your feedback and your expertise.
Best Regards