Summary


The WebLogic Application Server with the JTA driver provides full support for J2EE applications that require distributed transactions. Best of all, it is implemented transparently to the application. The JTA driver provides the transaction manager, and the XA-compliant resources provide the resource managers. The J2EE application need only locate the UserTransaction and DataSource objects in the naming and directory service using JNDI and start the transaction. After the Connection object is obtained from the DataSource , access to the data using JDBC is exactly the same. After you successfully perform all the updates, invoke the commit() method on the UserTransaction object. If any exceptions are thrown, indicating an error condition, you can perform a rollback.



BEA WebLogic Platform 7
BEA WebLogic Platform 7
ISBN: 0789727129
EAN: 2147483647
Year: 2003
Pages: 360

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net