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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e41e63-4496e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e41e63-4496e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?