Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


        setState ( TxState.ACTIVE );
        heuristicMessages_ = new Vector ();
        isXaSuspended_ = false;
        enlisted_ = false;
        // add default heuristic message
        addHeuristicMessage ( new StringHeuristicMessage ( "XA resource '"
                + resource.getName () + "' accessed with Xid '" + xidToHexString  + "'" ) );
    }
View Full Code Here


  }

  private void switchToHeuristicState ( String opCode , TxState state , XAException cause )
  {
    String errorMsg = interpretErrorCode ( resourcename_ , opCode , xid_ , cause.errorCode );
    addHeuristicMessage ( new StringHeuristicMessage ( errorMsg ) );
    setState ( state );
  }
View Full Code Here

    return IntraVmObjectFactory.createReference ( this , getUniqueResourceName() );   
  }
 
  public Connection getConnection() throws SQLException
  {
    StringHeuristicMessage m = null;
    return getConnection ( m );
  }
View Full Code Here

    return getConnection ( m );
  }

    public Connection getConnection ( String msg ) throws SQLException
    {
      return getConnection ( new StringHeuristicMessage ( msg ) );
    }
View Full Code Here

    public AtomikosNonXAParticipant ( JtaAwareNonXaConnection connection , String name )
    {
        heuristicMessages = new ArrayList ();
        this.connection = connection;
        heuristicMessages.add ( new StringHeuristicMessage ( "Non-XA resource '" + name +
                "': warning: this resource does not support two-phase commit" ) );
    }
View Full Code Here

    public AtomikosNonXAParticipant ( JtaAwareNonXaConnection connection , String name )
    {
        heuristicMessages = new ArrayList<HeuristicMessage> ();
        this.connection = connection;
        heuristicMessages.add ( new StringHeuristicMessage ( "Non-XA resource '" + name +
                "': warning: this resource does not support two-phase commit" ) );
    }
View Full Code Here

  public void readData(DataInput in) throws IOException {
    readOnly=in.readBoolean();
    int nbMessages=in.readInt();
    heuristicMessages=new ArrayList<HeuristicMessage>(nbMessages);
    for (int i = 0; i < nbMessages; i++) {
      heuristicMessages.add(new StringHeuristicMessage(in.readUTF()));
    }

  }
View Full Code Here

    return IntraVmObjectFactory.createReference ( this , getUniqueResourceName() );   
  }
 
  public Connection getConnection() throws SQLException
  {
    StringHeuristicMessage m = null;
    return getConnection ( m );
  }
View Full Code Here

    return getConnection ( m );
  }

    public Connection getConnection ( String msg ) throws SQLException
    {
      return getConnection ( new StringHeuristicMessage ( msg ) );
    }
View Full Code Here

    }

    protected void setRollbackOnly ()
    {
        StringHeuristicMessage msg = new StringHeuristicMessage (
                "Transaction.setRollbackOnly was called." );
        RollbackOnlyParticipant p = new RollbackOnlyParticipant ( msg );

        try {
          addParticipant ( p );
View Full Code Here

TOP

Related Classes of com.atomikos.icatch.StringHeuristicMessage

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.