It's not a secret anymore!
The moose likes JDBC and the fly likes detect db locks Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "detect db locks" Watch "detect db locks" New topic
Author

detect db locks

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
Hi All,
We have a huge java application. Sometimes we experience database locking problems which we feel is because of db commit / rollback not being handled properly in the code. Is there a way, that this can be detected? some wrapper class or something of that sort which can log if db commit or rollback has not been invoked for insert/update/delete statements.. it would be helpful if u can give some example code.


Thanks & Regards,<br />Nijeesh.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: detect db locks
 
Similar Threads
Session Auto-Comit?
JDBC manually commit
UserTransaction
EJB Transactions and Java beans interaction
JDBC Transactions across multiple databases