I am using Spring Integration to read a message from the queue and write it out to multiple queues. In case of any failure, I want the message to be written to a failure queue and none of the output queues should have received the message. To achieve this, how can I set up my transactions? I am using a message driven channel adapter on the inbound and a jms outbound channel adapter. I am using a splitter to create multiple messages (based on number of output queues) that are provided to the jms outbound channel adapter. The flow will be running as a standalone java application.
Thanks.