Showing posts with label Transactions. Show all posts
Showing posts with label Transactions. Show all posts

Monday, March 26, 2012

JDBC Transactions

Most of the times transactions are important when we deal with JDBC. When we perform database operations if we don't realize the importance of transactions it will end up with a tragedy. I have created a scenario to demonstrate the importance of a transaction.
Scenario :
Lets assume a scenario where a transaction credit 500 rs from user1 and debit that 500 rs to user2 .

initial state of accounts

© kani.stack.notez 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis