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.
Joined: Sep 29, 2002
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.