Examples of XARecoveryResource


Examples of com.arjuna.ats.jta.recovery.XARecoveryResource

/*  428 */         if (theUid.notEquals(Uid.nullUid()))
/*      */         {
/*  435 */           if (this._objStore.currentState(theUid, this._recoveryManagerClass.type()) != 0)
/*      */           {
/*  438 */             boolean problem = false;
/*  439 */             XARecoveryResource record = null;
/*      */             try
/*      */             {
/*  443 */               record = this._recoveryManagerClass.getResource(theUid);
/*      */
/*  445 */               problem = true;
/*      */
/*  447 */               switch (record.recoverable())
/*      */               {
/*      */               case 12:
/*  451 */                 if (jtaLogger.logger.isDebugEnabled())
/*      */                 {
/*  453 */                   jtaLogger.logger.debug(16L, 4L, 2048L, "XARecovery attempting recovery of " + theUid);
/*      */                 }
/*      */
/*  461 */                 int recoveryStatus = record.recover();
/*      */
/*  463 */                 if (recoveryStatus != 1)
/*      */                 {
/*  465 */                   if (recoveryStatus == 3)
/*      */                   {
/*  467 */                     problem = false;
/*      */
/*  469 */                     if (jtaLogger.loggerI18N.isInfoEnabled())
/*      */                     {
/*  472 */                       jtaLogger.loggerI18N.info("com.arjuna.ats.internal.jta.recovery.recoverydelayed", new Object[] { theUid, new Integer(recoveryStatus) });
/*      */                     }
/*      */
/*      */                   }
/*  484 */                   else if (jtaLogger.loggerI18N.isWarnEnabled())
/*      */                   {
/*  487 */                     jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.recoveryfailed", new Object[] { theUid, new Integer(recoveryStatus) });
/*      */                   }
/*      */
/*      */                 }
/*      */                 else
/*      */                 {
/*  499 */                   problem = false;
/*      */                 }
/*      */
/*  503 */                 break;
/*      */               case 11:
/*  512 */                 problem = false;
/*      */
/*  514 */                 break;
/*      */               case 10:
/*      */               default:
/*  518 */                 if (!jtaLogger.logger.isDebugEnabled())
/*      */                   break;
/*  520 */                 jtaLogger.logger.debug(16L, 4L, 2048L, "XARecovery " + theUid + " is non-recoverable");
/*      */               }
/*      */
/*      */             }
/*      */             catch (NullPointerException ex)
/*      */             {
/*  533 */               problem = true;
/*      */             }
/*      */             catch (Throwable e)
/*      */             {
/*  537 */               problem = true;
/*      */
/*  539 */               if (jtaLogger.loggerI18N.isWarnEnabled())
/*      */               {
/*  541 */                 jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.recoveryerror", e);
/*      */               }
/*      */
/*      */             }
/*      */
/*  548 */             if ((problem) && (record != null))
/*      */             {
/*  560 */               if (record.getXid() == null)
/*      */               {
/*  562 */                 if (jtaLogger.loggerI18N.isWarnEnabled())
/*      */                 {
/*  564 */                   jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.cannotadd");
/*      */                 }
/*      */
/*      */               }
/*      */               else
/*      */               {
/*  570 */                 addFailure(record.getXid(), record.get_uid());
/*      */               }
/*      */             }
/*      */           }
/*      */         }
/*      */       }
View Full Code Here

Examples of com.arjuna.ats.jta.recovery.XARecoveryResource

/*      */             }
/*      */             else
/*      */             {
/* 1015 */               foundTransaction = true;
/*      */
/* 1023 */               XARecoveryResource record = this._recoveryManagerClass.getResource(recordUid, xares);
/*      */
/* 1025 */               int recoveryStatus = record.recover();
/*      */
/* 1027 */               if (recoveryStatus != 1)
/*      */               {
/* 1029 */                 if (jtaLogger.loggerI18N.isWarnEnabled())
/*      */                 {
/* 1031 */                   jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.failedtorecover", new Object[] { this._logName + ".xaRecovery ", new Integer(recoveryStatus) });
/*      */                 }
/*      */
/*      */               }
/*      */
/* 1043 */               removeFailure(record.getXid(), record.get_uid());
/*      */             }
/*      */
/* 1046 */             if (!doForget)
/*      */               continue;
/*      */             try
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.