This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes deadlock situation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "deadlock situation" Watch "deadlock situation" New topic
Author

deadlock situation

Kame
Greenhorn

Joined: Sep 07, 2001
Posts: 1
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.
 
subject: deadlock situation
 
Similar Threads
How can a deadlock occur in a thin client?
deadlock
Retry on getting exception
is it a DeadLock Condition?
Basic question about Exception