wood burning stoves
The moose likes JDBC and Relational Databases and the fly likes Transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Transactions" Watch "Transactions" New topic


Ranch Hand

Joined: Oct 09, 2003
Posts: 517

How to handle JDBC transactions in java?

i m using mySql.


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Warren Dew
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
Take a look at java.sql.Connection.setTransactionIsolation().

However, note that not all databases support transactions, and those that do, support different levels. The level of transaction support in MySQL varies depending on the table type you are using, with the default being no transactions. You might want to find out more about your particular database installation before deciding how much to depend on transactions.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
A nice book is there in the market.
"Java Transaction Processing - Mark Little, Jon Maron"
I agree. Here's the link: http://aspose.com/file-tools
subject: Transactions
It's not a secret anymore!