User: jwalters
Date: 01/04/26 03:39:53
Modified: src/main/javax/transaction/xa XAException.java
Log:
Split j2ee.jar up into two separate jars, jdbc-ext.jar and j2ee.jar. Fixed
a few miscellaneous problems up so jboss and other projects will compile
properly with these jars.
Revision Changes Path
1.3 +31 -22 jboss-j2ee/src/main/javax/transaction/xa/XAException.java
Index: XAException.java
===================================================================
RCS file: /cvsroot/jboss/jboss-j2ee/src/main/javax/transaction/xa/XAException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XAException.java 2001/04/01 13:52:44 1.2
+++ XAException.java 2001/04/26 10:39:53 1.3
@@ -9,54 +9,63 @@
/** The XAException is thown by the Resource Manager (RM) to inform the
Transaction Manager of error encountered for the transaction involved.
-@version $Revision: 1.2 $
+@version $Revision: 1.3 $
*/
public class XAException extends java.lang.Exception {
+ public int errorCode = 0;
+
/** Creates new <code>XAException</code> without detail message.
*/
- public XAException()
- {
+ public XAException() {
}
/** Constructs an <code>XAException</code> with the specified detail message.
@param msg the detail message.
*/
- public XAException(String msg)
- {
+ public XAException(String msg) {
super(msg);
}
/** Constructs an <code>XAException</code> for the specified error code.
@param msg the detail message.
*/
- public XAException(int errorCode)
- {
+ public XAException(int errorCode) {
super();
-
- _errorCode = errorCode;
- }
-
- // PUBLIC METHODS --------------------------------------
-
- public int getErrorCode()
- {
- return _errorCode;
+ this.errorCode = errorCode;
}
// STATIC VARIABLES ---------------------------------
/** added by kimptoc - needed for jbossmq to compile... */
public static final int XAER_NOTA = 1001;
- /** added by kimptoc - needed for jbossmq to compile... */
public static final int XAER_RMERR = 1002;
- /** added by kimptoc - needed for jbossmq to compile... */
public static final int XAER_OUTSIDE = 1003;
- /** added by kimptoc - needed for jbossmq to compile... */
public static final int XAER_DUPID = 1004;
-
- // PRIVATE VARIABLE ----------------------------------
- private int _errorCode = -1;
+ /** added by jwalters for completeness */
+ public static final int XAER_ASYNC = 1005;
+ public static final int XAER_INVAL = 1006;
+ public static final int XAER_PROTO = 1007;
+ public static final int XAER_RMFAIL = 1008;
+
+ /** added by jwalters - needed for jboss */
+ public static final int XA_HEURCOM = 1;
+ public static final int XA_HEURHAZ = 2;
+ public static final int XA_HEURMIX = 3;
+ public static final int XA_HEURRB = 4;
+ public static final int XA_NOMIGRATE = 5;
+ public static final int XA_RDONLY = 6;
+ public static final int XA_RETRY = 7;
+ public static final int XA_RBBASE = 8;
+ public static final int XA_RBCOMMFAIL = 8;
+ public static final int XA_RBDEADLOCK = 9;
+ public static final int XA_RBINTEGRITY = 10;
+ public static final int XA_RBOTHER = 11;
+ public static final int XA_RBPROTO = 12;
+ public static final int XA_RBROLLBACK = 13;
+ public static final int XA_RBTIMEOUT = 14;
+ public static final int XA_RBTRANSIENT = 15;
+ public static final int XA_RBEND = 15;
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development