Transactions 2004-05-25 - By sankara rao
Back Ashutosh Bhardwaj wrote: > Can somebody throw some lighty on local and global transactions ? what > are shareable and unsahreable connections?
Local Vs. Global Transactions:
Local transaction scope is limited to a single process (JVM) and may involve at most one non XA resources (for example: normal JDBC connection obtained from datasource). Local transaction semantics are normally achieved through resource specific protocol (for exaple, when JDBC connection is used, Connection.setAutoCommit and Connection.commit or Connection.rollback can be used to achieve transactional semantics).
Global transaction scope can span more than one process (one or more JVMs) and multiple XA resource might involve in the transaction (for example, in the same transaction, JMS and JDBC resources can be used). Global transaction semantics are achieved through XA protocol.
shareable and unshareable connections:
With in the transaction, potentially you could share connections and it will improve the performance. But in some cases, from the application point of view, connections should not be shared (for example, different isolation levels are required). J2EE has provision to configure a resource either shareable or unshareable in the deployment descriptors.
regards sankar
> > regards, > ashutosh > =========================================================================== > To unsubscribe, send email to listserv@(protected) and include in the > body of the message "signoff J2EE-INTEREST". For general help, send > email to listserv@(protected) and include in the body of the message > "help". >
-- Every great movement must experience three stages: ridicule, discussion, adoption.
-- John Stuart Mill
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|