Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Record getting locked  RSS feed

Mani Balasubramanian
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In our application, we have to perform lot of checks in the database.
Right now we are doing these thru' stored procedure (One procedure per check). These procudures returns the status of the check(true or false) as well as the data that are failed during the check. The data is returned in the form of OracleTypes.CURSOR (ResultSet).
In JSP, if the a check fails, we are putting the callablestatement in the session.
In another page we take the callablestatement from the session, execute it and traverse the resultset to display the datas that are failed during the check.
In this process, some records are getting locked (intermittent). We cant able to simulate a particular scenario where this is happening. Eventhough it is happening very rarely, it is a very serious problem for us.
Any clue or suggestion please...
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!