I’m developing a web application, based on a DB.
In my application, I access to this one from two different Servlets, and it’s possible these accesses are concurrently.
I need to know if it is permitted, and if not, how can I do it?
Is there some trick to perform queries in a thread-safe way?
It is possible and how to handle will be database responsibility based on DB settings (isolation level settings).
Here are the isolation levels in SQL Server and these may vary based on DB.