Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


    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

    /**
     * @see com.atomikos.jdbc.HeuristicDataSource#getConnection(java.lang.String)
     */
    public Connection getConnection ( String msg ) throws SQLException
    {
        HeuristicMessage hm = new StringHeuristicMessage ( msg );
        return getConnection ( hm );
    }
View Full Code Here

     *      java.lang.String, java.lang.String)
     */
    public Connection getConnection ( String user , String passwd , String msg )
            throws SQLException
    {
        HeuristicMessage hm = new StringHeuristicMessage ( msg );
        return getConnection ( user, passwd, hm );
    }
View Full Code Here

    /**
     * @see com.atomikos.jdbc.HeuristicDataSource#getConnection(java.lang.String)
     */
    public Connection getConnection ( String msg ) throws SQLException
    {
        StringHeuristicMessage hm = new StringHeuristicMessage ( msg );
        return getConnection ( hm );
    }
View Full Code Here

     *      java.lang.String, java.lang.String)
     */
    public Connection getConnection ( String user , String passwd , String msg )
            throws SQLException
    {
        StringHeuristicMessage hm = new StringHeuristicMessage ( msg );
        return getConnection ( user, passwd, hm );
    }
View Full Code Here

    public NonXAParticipant ( ThreadLocalConnection connection )
    {
        recovered = false;
        heuristicMessages = new ArrayList ();
        this.connection = connection;
        heuristicMessages.add ( new StringHeuristicMessage (
                "JDBC driver does not support XA!" ) );
    }
View Full Code Here

        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

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.