File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes java.sql.sqlexception: lock wait Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java.sql.sqlexception: lock wait" Watch "java.sql.sqlexception: lock wait" New topic

java.sql.sqlexception: lock wait

Silpa Sunkavalli

Joined: Jun 04, 2008
Posts: 3

I have a question regarding the java.sql.sqlexception: lock wait
timeout exceeded; try restarting transaction
with respect to following code

I would like to catch the Lock wait timeout exceeded SQLException and
try executing the insert statement one more time,before throwing the
SQLException (if it failed for the 2nd time).I was wondering if it is
good practice to catch
the Lock wait timeout exceeded SQLException.Any suggestions or other approaches to achieve the result is highly
Thanks for the help,
I agree. Here's the link:
subject: java.sql.sqlexception: lock wait
It's not a secret anymore!