I am using Java Jersey https://jersey.java.net/ for a simple project with a MySQL DB. I found how to set the lockmode but I would like to also know how to set the transactions isolation levels. I can't find it anywhere ! rXp
Asked
Active
Viewed 33 times
1 Answers
0
This has nothing to do with Jersey. You can set the isolation level on your jdbc connection:
Connection conn = ...; // get connection from somewhere
conn.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);

Alden
- 6,553
- 2
- 36
- 50