I want to have a Java Web App and a normal Java App that both have access to the same MySQL database using JDBC. The two are of course entirely independent so what i want is to find a way to synchronize them somehow, so that i can ensure that there will be no errors to the database access due to race conditions, but i don’t know how to do that. Any suggestions?
Share
Transactions. Pick the best isolation level of your transactions for your needs.