This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb.remove() and database lock ?

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

we are using a 3rd party EJB product in our application and it sometimes throws


2007-07-05 16:08:24,709 [WebContainer : 3] ERROR Sonora.Fields.FmsTableSessionBean - wasdev2 update >>> Unexpected exception: javax.ejb.TransactionRolledbackLocalException: ; nested exception is: javax.ejb.EJBException: [SQL0913] Row or object SONOR00039 in SONORACA type *FILE in use.S_EXCP(9)


as per our DBA,the application is trying to do an update or delete transaction and it is no being committed so when another process is trying to get this resource the database will response that the table is in use or lock.

if i call ejb.remove(), will it relase the lock on table and ends transaction ? is there any alternate solution for this issue ? we are using DB2 over iSeries v5.3

Thanks,
Rajeev
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A transaction should be designed to last for the minimum amount of time. Try and find out how long the transactions are taking. As a general rule, 30 seconds should normally be more than sufficient.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic