How can you handle a situation where a database connection is lost during a transaction?
- Commit the transaction
- Ignore the issue and proceed
- Retry the transaction
- Rollback the transaction
If a database connection is lost during a transaction, you can handle it by retrying the transaction, allowing for the re-establishment of the connection and completion of the operation.
Loading...
Related Quiz
- A _________ balancer distributes network or application traffic across a number of servers.
- How can an HTTP servlet differentiate between GET and POST requests?
- What is the difference between 'dirty read' and 'non-repeatable read' in the context of transaction isolation levels?
- In JDBC, the __________ exception is thrown when there is a problem with the SQL syntax.
- The __________ API in Java EE is used for declarative security in web applications.