Package com.atomikos.datasource

Examples of com.atomikos.datasource.ResourceException


             
          } catch ( XAException xaerr ) {
              errors.push ( xaerr );
              String msg = interpretErrorCode ( resourcename_ , "end" , xid_ , xaerr.errorCode );
              Configuration.logDebug ( msg, xaerr );
              throw new ResourceException ( msg, errors );
          }
          state_ = TxState.LOCALLY_DONE;
        }
    }
View Full Code Here


        } catch ( XAException xaerr ) {
            String msg = interpretErrorCode ( resourcename_ , "resume" , xid_ , xaerr.errorCode );
            Configuration.logWarning ( msg ,
                    xaerr );
            errors.push ( xaerr );
            throw new ResourceException ( msg ,
                    errors );
        }
        state_ = TxState.ACTIVE;
        enlisted_ = 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 no connection then we can't recover the participant
        if ( xaresource == null ) {
            Configuration.logWarning ( "XATransactionalResource " + getName() +
View Full Code Here

                throw ora;
          
            } catch ( XAException xaerr ) {
                Configuration.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

                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

        } catch ( javax.resource.ResourceException e ) {
            printMsg ( "error getting XAResource: " + e.getMessage (),
                    Console.WARN );
            Stack errors = new Stack ();
            errors.push ( e );
            throw new ResourceException ( "Error in getting XA resource",
                    errors );
        }
        printMsg ( "refreshXAConnection() done.", Console.INFO );
        // System.out.println ( "DONE REFRESHXACONNECTION FOR RESOURCE: " +
        // getName() );
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

                ret = connection.getXAResource ();
        } catch ( javax.resource.ResourceException e ) {
          LOGGER.logWarning("error getting XAResource: " + e.getMessage ());
            Stack errors = new Stack ();
            errors.push ( e );
            throw new ResourceException ( "Error in getting XA resource",
                    errors );
        }

       LOGGER.logInfo("refreshXAConnection() done.");
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.