Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


    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


  protected void enlist ( String hmsg ) throws JMSException
  {
    CompositeTransaction ct = null;
    CompositeTransactionManager ctm = getCompositeTransactionManager();
    boolean enlist = false;
    StringHeuristicMessage shmsg = new StringHeuristicMessage ( hmsg );
   
    if ( ctm != null ) {
      ct = ctm.getCompositeTransaction();
      if ( ct != null && ct.getProperty ( TransactionManagerImp.JTA_PROPERTY_NAME ) != null ) {
        enlist = true;
View Full Code Here

        setXid( resource_.createXid ( tid_ ));
        setState ( TxState.ACTIVE );
        heuristicMessages_ = new Vector ();
        isXaSuspended_ = false;
        knownInResource = false;
        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

    state_ = TxState.valueOf(in.readUTF());
    resourcename_ = in.readUTF();
    int nbMessages = in.readInt();
    heuristicMessages_ = new Vector<HeuristicMessage>(nbMessages);
    for (int i = 0; i < nbMessages; i++) {
      heuristicMessages_.add(new StringHeuristicMessage(in.readUTF()));
    }
   

    boolean xaresourceSerializable = in.readBoolean();
    if (xaresourceSerializable) {
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

                } else {

                    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

    }
   
    void setRollbackOnly() {
     
      StringHeuristicMessage msg = new StringHeuristicMessage (
      "setRollbackOnly" );
      RollbackOnlyParticipant p = new RollbackOnlyParticipant ( msg );

      try {
        addParticipant ( p );
View Full Code Here

  public ReadOnlyParticipant ( CoordinatorImp coordinator )
  {
    this.coordinatorId = coordinator.getCoordinatorId();
    msgs = new StringHeuristicMessage[1];
    msgs[0] = new StringHeuristicMessage ( "ReadOnlyParticipant" );
  }
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.