Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deadlock situation

 
Kame
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Could some one tell me how to avoid deadlock situation in JAVA. I am having try-catch-finally blocks to execute a query, and catch the exception. If a SQLerror code of -803 occurs, I want to try to execute the query again and I want to repeat the process until the session times out without actually throwing an exception. In all other cases, I just throw an exception.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic