what are the consequences of not using the con.rollBack if some exception
Assume your update() method is successful and an exception occurr in updatex() method. Now if you don't rollback your transaction,the data will remain in same state changed by update() method until commit or rollaback.
If same time any other method want to perform any operation on same row changed by update() method then it will get error.
Shailesh
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Originally posted by trupti nigam: what are the consequences of not using the con.rollBack if some exception occurs.
When you are performing transaction on any database row, you are locking it and not allowing other users to perform update operations on it. A rollback() or commit() releases the locks.