Name

HeuristicMixedException

Synopsis

This exception is thrown by the commit() methods on Transaction and UserTransaction, to indicate that some updates were rolled back due to a heuristic decision (e.g., some resources involved in a transaction lost contact with the transaction manager and decided to rollback, but some others had already committed).

                  
public class HeuristicMixedException extends Exception {
// Public Constructors
   public HeuristicMixedException();  
   public HeuristicMixedException( String msg);  
}

Thrown By

Transaction.commit(), TransactionManager.commit(), UserTransaction.commit()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.