0

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

rXp
  • 617
  • 2
  • 12
  • 25

1 Answers1

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