Package com.atomikos.datasource

Examples of com.atomikos.datasource.ResourceException


          } catch ( XAException xaerr ) {
              errors.push ( xaerr );
              String msg = interpretErrorCode ( resourcename_ , "end" , xid_ , xaerr.errorCode );
              if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( msg, xaerr );
              throw new ResourceException ( msg, errors );
          }
          setState ( TxState.LOCALLY_DONE );
        }
    }
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 );
        enlisted_ = 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 no connection then we can't recover the participant
        if ( xaresource == null ) {
            LOGGER.logWarning ( "XATransactionalResource " + getName() +
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 );
            }
            flags = XAResource.TMNOFLAGS;
            done = (recoveredlist == null || recoveredlist.length == 0);
            if ( !done ) {
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 ) {
              errors.push ( xaerr );
              String msg = interpretErrorCode ( resourcename_ , "end" , xid_ , xaerr.errorCode );
              if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( msg, xaerr );
              throw new ResourceException ( msg, errors );
          }
          setState ( TxState.LOCALLY_DONE );
        }
    }
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

     
        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

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.