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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856386#3856386

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856386


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to