As already mentioned, cracked_all is not recommended to give up immediately.
I think the best way would be to have other databases ready to work since the primary failure. After receiving a failed confirmation, you can redirect them to a secondary one. Therefore, you do not lose so much data. In this case, you can use the "Guaranteed Delivery" feature in JMS.
With guaranteed delivery, the messaging system uses an integrated data warehouse to store messages. Each computer on which the messaging system is installed has its own data warehouse so that messages can be stored locally. When the sender sends a message, the send operation does not complete successfully until the message is stored in the sender data store. Subsequently, the message is not deleted from one data store until it is successfully sent and stored in the next data store. Thus, as soon as the sender successfully sends the message, it is always stored on disk, at least on one computer, until it is successfully delivered and confirmed by the recipient. 1
source share