Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


  public ReadOnlyParticipant ( CoordinatorImp coordinator )
  {
    this.coordinatorId = coordinator.getCoordinatorId();
    msgs = new StringHeuristicMessage[1];
    msgs[0] = new StringHeuristicMessage ( "ReadOnlyParticipant" );
  }
View Full Code Here


        } catch ( RollbackException jtr ) {
            // NO vote.
            result = new Boolean ( false );
        } catch ( Exception e ) {
            // here, participant might be indoubt!
            StringHeuristicMessage shm = new StringHeuristicMessage (
                    "Possibly heuristic participant: " + part.toString () );
            HeuristicMessage[] msgs = new HeuristicMessage[1];
            msgs[0] = shm;
            HeurHazardException heurh = new HeurHazardException ( msgs );
            throw new PropagationException ( heurh, false );
View Full Code Here

                    // heur hazard or not; the conclusion is the same
                    // System.err.println ( "TerminationResult: heuristic hh" );

                    heurhazards = true;
                    heurmixed = (heurmixed || heuraborts || heurcommits);
                    HeuristicMessage heurmsg = new StringHeuristicMessage (
                            "No commit ACK from " + "participant "
                                    + reply.getParticipant () );
                    errmsgvector_.addElement ( heurmsg );
                    heuristicparticipants_.put ( reply.getParticipant (),
                            TxState.HEUR_HAZARD );
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

    /**
     * @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

    /**
     * @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

    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

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.