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
posted 8 years ago
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.