Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


  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


      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

  }

  public void publish ( Topic t, Message msg, String hmsg ) throws JMSException
  {
    StringHeuristicMessage shmsg = new StringHeuristicMessage ( hmsg );
    sendToDestination ( t , msg , shmsg );

  }
View Full Code Here

  }

  public void publish ( Topic t, Message msg, int deliveryMode, int priority, long timeToLive, String hmsg ) throws JMSException
  {
    StringHeuristicMessage shmsg = new StringHeuristicMessage ( hmsg );
    sendToDestination ( t , msg , deliveryMode , priority , timeToLive , shmsg );

  }
View Full Code Here

      //send ( getDestination() , msg , deliveryMode , priority , timeToLive );
  }

  public void send Destination dest, Message msg ) throws JMSException
  {
      HeuristicMessage hmsg = new StringHeuristicMessage (
              "Sending of JMS Message with ID: " + msg.getJMSMessageID () );
      sendToDestination ( dest , msg , hmsg );
   
  }
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.