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
posted
0
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.