Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


    return getConnection ( m );
  }

    public Connection getConnection ( String msg ) throws SQLException
    {
      return getConnection ( new StringHeuristicMessage ( msg ) );
    }
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

      Message ret = null;
      enlist ();
      try {
          ret = receiver_.receive ();
          if ( hmsg == null && ret != null )
              hmsg = new StringHeuristicMessage (
                      "Receipt of JMS Message with JMS ID : "
                              + ret.getJMSMessageID () );
      } finally {
          delist ( hmsg );
      }
View Full Code Here

      receiver_.close ();
  }

  public Message receive ( String hmsg ) throws JMSException
  {
      StringHeuristicMessage msg = new StringHeuristicMessage ( hmsg );
      return receive ( msg );
  }
View Full Code Here

      return receive ( msg );
  }

  public Message receive ( String hmsg, long timeout ) throws JMSException
  {
      StringHeuristicMessage msg = new StringHeuristicMessage ( hmsg );
      return receive ( msg, timeout );
  }
View Full Code Here

      return receive ( msg, timeout );
  }

  public Message receiveNoWait ( String hmsg ) throws JMSException
  {
      StringHeuristicMessage msg = new StringHeuristicMessage ( hmsg );
      return receiveNoWait ( msg );
  }
View Full Code Here

   
  }

  public void publish ( Message msg, String hmsg ) throws JMSException
  {
    StringHeuristicMessage shmsg = new StringHeuristicMessage ( hmsg );
    //FIXED 10107
    sendToDefaultDestination ( msg , shmsg );
   
  }
View Full Code Here

   
  }

  public void publish ( Message msg, int deliveryMode, int priority, long timeToLive, String hmsg ) throws JMSException
  {
    StringHeuristicMessage shmsg = new StringHeuristicMessage ( hmsg );
    //FIX FOR 10107
    sendToDefaultDestination ( msg , deliveryMode , priority , timeToLive , shmsg );
   
  }
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.