Will database transactional integrity be guaranteed when tomcat shuts down?

if there is a set of operations to be performed within a method that belongs to the same transaction, how is the transaction in progress handled when tomcat closes? Will tomcat wait for the transaction to finish? Or does the transaction become incomplete?
production environment, if you want to release the version, tomcat is closed. If there happens to be a user placing an order, how to avoid the failure of the user to place the order?

Mar.18,2021

according to your problem description, let me analyze it, that is, when a wave of operations are in the same transaction, and then the transaction is carried out, tomcat shuts down.
if it is the same transaction, it will only be committed when it is finally completed.
so the integrity of the transaction is only relevant to whether the tomcat shutdown transaction commits or not.

Menu