Package javax.transaction.xa

Examples of javax.transaction.xa.XAException.initCause()


                    jmsservice.getJMSServiceID() +
                    " failed for connectionId:"+ connectionId +
                    " due to " + failure_cause;
            _loggerOC.severe(exerrmsg);
            XAException xae = new XAException(XAException.XAER_RMERR);
            xae.initCause(jse);
            throw xae;
        }
        return result;
    }
View Full Code Here


                    ":transactionId=" + this.mTransactionId +
                    //"and Xid:" + mqxid.toString() +
                    " due to " + failure_cause;
            _loggerOC.severe(exerrmsg);
            XAException xae = new XAException(XAException.XAER_RMERR);
            xae.initCause(jse);
            throw xae;
        } finally {
            // finish up this resource and any others joined to it in this transaction
          boolean throwExceptionIfNotFound = false;
            DirectXAResource[] resources = DirectXAResourceMap.getXAResources(this.mXid,throwExceptionIfNotFound);
View Full Code Here

          xari.clearTransactionInfo();
        } catch (JMSException jmse) {
          System.err.println("MQRA:DXAR:rollback:XAException-Exception=" + jmse.getMessage());
          Debug.printStackTrace(jmse);
          XAException xae = new XAException(XAException.XAER_RMFAIL);
          xae.initCause(jmse);
          throw xae;
        }
            }
            DirectXAResourceMap.unregister(savedXid);  
        }
View Full Code Here

      try {
        transactionId = reply.getJMQTransactionID();
      } catch (NoSuchFieldException nsfe) {
        String exerrmsg = _lgrMID_EXC + "JMSServiceException:Missing JMQTransactionID";
        XAException xae = new XAException(XAException.XAER_RMFAIL);
        xae.initCause(nsfe);
        _loggerOC.severe(exerrmsg);
        throw xae;
      }

    } catch (JMSServiceException jse) {
View Full Code Here

          + " failed for connectionId:" + connectionId +
          // "and Xid:" + mqxid.toString() +
          " due to " + failure_cause;
      _loggerOC.severe(exerrmsg);
      XAException xae = new XAException(XAException.XAER_RMFAIL);
      xae.initCause(jse);
      throw xae;
    }
    return transactionId;
  }
View Full Code Here

        } catch (RollbackException e) {
            // remove the tx
            SubordinationManager.getTransactionImporter().removeImportedTransaction(xid);
            final XAException xaException = new XAException(XAException.XA_RBROLLBACK);
            xaException.initCause(e);
            throw xaException;

        } catch (XAException ex) {
            // resource hasn't had a chance to recover yet
            if (ex.errorCode != XAException.XA_RETRY) {
View Full Code Here

            }
            throw ex;

        } catch (HeuristicRollbackException ex) {
            final XAException xaException = new XAException(XAException.XA_HEURRB);
            xaException.initCause(ex);
            throw xaException;

        } catch (HeuristicMixedException ex) {
            final XAException xaException = new XAException(XAException.XA_HEURMIX);
            xaException.initCause(ex);
View Full Code Here

            xaException.initCause(ex);
            throw xaException;

        } catch (HeuristicMixedException ex) {
            final XAException xaException = new XAException(XAException.XA_HEURMIX);
            xaException.initCause(ex);
            throw xaException;

        } catch (final HeuristicCommitException ex) {
            final XAException xaException = new XAException(XAException.XA_HEURCOM);
            xaException.initCause(ex);
View Full Code Here

            xaException.initCause(ex);
            throw xaException;

        } catch (final HeuristicCommitException ex) {
            final XAException xaException = new XAException(XAException.XA_HEURCOM);
            xaException.initCause(ex);
            throw xaException;

        } catch (final IllegalStateException ex) {
            // remove tx
            SubordinationManager.getTransactionImporter().removeImportedTransaction(xid);
View Full Code Here

        } catch (final IllegalStateException ex) {
            // remove tx
            SubordinationManager.getTransactionImporter().removeImportedTransaction(xid);

            final XAException xaException = new XAException(XAException.XAER_NOTA);
            xaException.initCause(ex);
            throw xaException;

        } catch (SystemException ex) {
            // remove tx
            SubordinationManager.getTransactionImporter().removeImportedTransaction(xid);
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.