KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > minerva > pool > jdbc > xa > wrapper > TransactionListener


1 /*
2  * Licensed under the X license (see http://www.x.org/terms.htm)
3  */

4 package org.ofbiz.minerva.pool.jdbc.xa.wrapper;
5
6
7 /**
8  * Callback for notification when a transaction is finished.
9  *
10  * @author Aaron Mulder (ammulder@alumni.princeton.edu)
11  */

12 public interface TransactionListener {
13
14     /**
15      * Indicates that the transaction this instance was part of has finished.
16      */

17     public void transactionFinished(XAConnectionImpl con);
18
19     /**
20      * Indicates that the transaction this instance was part of has finished,
21      * and there was a fatal error. Any pooled resources should be recycled.
22      */

23     public void transactionFailed(XAConnectionImpl con);
24 }
25
Popular Tags