how to code a transaction.
From: <i676373_at_gmail.com>
Date: 5 Mar 2007 17:23:47 -0800
Message-ID: <1173144227.379974.158720_at_n33g2000cwc.googlegroups.com>
Hi,
Date: 5 Mar 2007 17:23:47 -0800
Message-ID: <1173144227.379974.158720_at_n33g2000cwc.googlegroups.com>
Hi,
How do I manually code an atomic transaction, given the following scenario?
- User need to pay a fine.
- User log into the system.
- User click the pay button.
- User pay by a custom payment methods called NETS (system operated through telephone line, in Singapore; it is not direct connection to a databse, but somekind of services.)
- Payment/NETS transaction done; transaction cannot rollback after this.
- System would update the database to indicate the fine have been paid.
But step 6 might fail. How do I ensure that all the steps is in
one single transaction?
Is there any example/web page which show how to program a atomic
transaction manually?
Thanks
regards,
john.
Received on Tue Mar 06 2007 - 02:23:47 CET