• Post Reply Bookmark Topic Watch Topic
  • New Topic

enity bean update method  RSS feed

 
trupti nigam
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Please respond to this message...
I am having an update method in my conatainer managed bean which updates one of the field in the DB.
The code for th update method is given below..

public boolean updateStatus(int transState)
{
boolean returnVal = false;
log("Inside the updateStatus Method of the transBean.");
setTransState(transState);
returnVal = true;
return returnVal;
}
but my bean is not able to update this field. the program is getting hung when after the log statement.
can anybody tell me what can be the possible errors..
i can't proceed further without fixing this problem ..
hence please repond quickly..
thanks,
trupti
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like what might be happening is that some other process or EJB is holding on to that row in the datbase and it will not let you obtain a database lock (a write lock) until the other process lets go of the original read lock.
Read This article and see if it helps.
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!