spring transactions, hibernate, postgresql looks like record locking issue
ive been working with a few people on stackoverflow on this issue and still am coming up dead. here are the threads, my code is in them
http://stackoverflow.com/questions/7...in-transaction
http://stackoverflow.com/questions/7...ction-take-two
it looks to me that the issue is some kind of locking, but i would expect an exception in that case. i can't understand why the execution would just stop indefinetly.
overview, i have spring 3.0.5, hibernate 3.6.5 and the postgres 9.0 driver. i have my code written in a DAO model (no services) to match an existing system. my tests look like this
dao.deleteallrows()
dao.inserttow()
in every case, the delete row works fine, but execution stops when hibernate sends the insert sql to the database and it just sits there. similarly, if i do
dao.insertrow1()
dao.insertrow2()
row 1 will insert correctly and row 2 will hang.
in the second forum ive posted the locks on the table in postgres, im thinking thats the issue, for some reason spring is messing up the locks. i don't know why that would be but that seems to be the problem.
anyone have a direction that i can start looking in? ive got 4 developers waiting for this to be done before they can move forward again so i really need some help here. im completely stumped and am stabbing at things in the dark here.
thanks guys