Package com.atomikos.datasource

Examples of com.atomikos.datasource.ResourceException


  private XAResourceTransaction findOrCreateBranchWithResourceException(CompositeTransaction ct) {   
        XAResourceTransaction ret = null;
        try {
            ret = findOrCreateBranch(ct);
        } catch (Exception e) {
            throw new ResourceException ( "Failed to get branch", e );
        }
    return ret;
  }
View Full Code Here


            // also closes all sessions.
            res = session.getXAResource ();
        } catch ( JMSException jms ) {
            Stack errors = new Stack ();
            errors.push ( jms );
            throw new ResourceException ( "Error in getting XA resource",
                    errors );
        }

        return res;
View Full Code Here

    {
        super.close ();
        try {
            if ( conn_ != null ) conn_.close ();
        } catch ( JMSException err ) {
            throw new ResourceException ( err.getMessage () );
        }
    }
View Full Code Here

        } catch ( XAException xaerr ) {
            String msg = interpretErrorCode ( resourcename_ , "resume" , xid_ , xaerr.errorCode );
            LOGGER.logWarning ( msg ,
                    xaerr );
            errors.push ( xaerr );
            throw new ResourceException ( msg ,
                    errors );
        }
        setState ( TxState.ACTIVE );
        knownInResource = true;
    }
View Full Code Here

                res = conn_.getXAResource ();
            // null if db down during recovery
        } catch ( SQLException sql ) {
            Stack errors = new Stack ();
            errors.push ( sql );
            throw new ResourceException ( "Error in getting XA resource",
                    errors );
        }

        return res;
View Full Code Here

     
        if ( closed_ ){
          throw new IllegalStateException ("XATransactionResource already closed");
        }
        if ( !(participant instanceof XAResourceTransaction) ) {
            throw new ResourceException ( "Wrong argument class: " + participant.getClass ().getName () );
        }
       
        XAResource xaresource = getXAResource ();
       
        if ( xaresource == null ) {
View Full Code Here

        throw ora;

    } catch ( XAException xaerr ) {
        LOGGER.logWarning ( "Error in recovery", xaerr );
        errors.push ( xaerr );
        throw new ResourceException ( "Error in recovery", errors );
    }
    return recoveredlist;
  }
View Full Code Here

            // also closes all sessions.
            res = session.getXAResource ();
        } catch ( JMSException jms ) {
            Stack errors = new Stack ();
            errors.push ( jms );
            throw new ResourceException ( "Error in getting XA resource",
                    errors );
        }

        return res;
View Full Code Here

        super.close ();
        try {
            if ( conn_ != null )
                conn_.close ();
        } catch ( JMSException err ) {
            throw new ResourceException ( err.getMessage () );
        }
    }
View Full Code Here

            }
        }

        catch ( Exception e ) {
            errors.push ( e );
            throw new ResourceException ( "ResourceTransaction map failure",
                    errors );
        }

        ct.addParticipant ( last );
View Full Code Here

TOP

Related Classes of com.atomikos.datasource.ResourceException

Copyright © 2018 www.massapicom. 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.