Exceptions in Spring Integration: How to log but not intercept
Say that I have a basic Spring Integration flow like: <jms:inbound-channel-adapter> <poller> <transactional/> </poller> </jms:inbound-channel-adapter> <some:outbound-channel-adapter/> If the outbound adapter throws an exception the entire transaction is rolled back. If the inbound message subsystem supports it the message will be redelivered a number of times until it will eventually be posted on the Dead Letter Queue. This is fine - except that the exception itself is lost which is very annoying from a diagnostic point of view. If I configure the inbound adapter with an error-channel like: