This content has been marked as final.
Show 2 replies
-
1. Re: Associations between Transaction and Connection?
cool_xiong Nov 25, 2004 3:57 AM (in response to cool_xiong)Because JDBC comments as following:
Note: By default a Connection object is in auto-commit mode, which means that it automatically commits changes after executing each statement. If auto-commit mode has been disabled, the method commit must be called explicitly in order to commit changes; otherwise, database changes will not be saved.
Then, if connection in method1 close, it seems transaction will be commit or rollback, decided by con.isAutoCommit().
please tell me why transaction info from method1 can be kept after connection be closed.
Thanks. -
2. Re: Associations between Transaction and Connection?
cool_xiong Nov 26, 2004 4:28 AM (in response to cool_xiong)I made a mistake.
:P