BEA WebLogic Server™ 8.1 Unleashed
by Mark Artiges, Gupreet Singh Bhasin, Bernard Ciconte, Malcolm Garland, Saranathan Govindarajan, James Huang, Subramanian Kovilmadam, Kunal Mittal, Paul J. Perrone, Tom Schwenk, Steve Steffen
The Java Transaction API and WebLogic
JTA specifies local, high-level Java interfaces between a transaction manager and the other parties involved in a distributed transactional system. The JTA package, javax.transaction, contains three core interfaces:
UserTransaction
TransactionManager
Transaction
The UserTransaction Interface
The UserTransaction interface is implemented for bean-managed transaction boundaries. It defines six methods that allow an application to explicitly manage transaction boundaries:
begin— Creates a new transaction associated with the current thread
commit— Commits a transaction
getStatus— Returns the status of a transaction as an integer
rollback— Immediately rolls back the transaction associated with the current thread ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access