Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

deadlock situation  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!