query for not losing the message
Hi,
I have a query , I am currently developing an application in which my I will read the data from the queue and will put
the data on the channel, that I am doing through message listener in spring integration and after that a file need to
be get created reading the message from that channel , That also I am doing through file generator in spring
integration.
Now for audit purpose I want while reading the message from the queue it should also be stored in database first and after
that it should go for file creation.But in the scenerio let say if file doesn't get created in the end succesfully then
in that case the message to be deleted means rollback from datbase and also that message again to be sent in to the
queue again , what I was trying to achieve that message should not be lost, please guide me how to proceed for this scenerio..!!
Thanks in advance...! :(