Meaningless Drivel is fun!*
The moose likes Distributed Java and the fly likes how to rollback a distributed transation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "how to rollback a distributed transation" Watch "how to rollback a distributed transation" New topic
Author

how to rollback a distributed transation

Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
How can we rollback a distributed transaction in java. If we are using CMP or BMP EJB, is there anyway to rollback the transaction that is deployed on distributed servers.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
The container handles the rollback of the JTA transaction for you, whether initiated by itself upon receiving a RuntimeException or after invoking the setRollBackOnl´┐Ży() method you have placed in your code. I presume that your data sources are XA-enabled and that you are using XA drivers.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to rollback a distributed transation
 
Similar Threads
Distributed Tx and Transactional File Access
questions?
statement insertion problem
Transaction in Webservices
How to insert data in multiple database.