Class ActiveMQTextCompatibleMessage

All Implemented Interfaces:
Message, TextMessage

public class ActiveMQTextCompatibleMessage extends ActiveMQTextMessage
  • Constructor Details

  • Method Details

    • setJMSReplyTo

      public void setJMSReplyTo(Destination dest) throws JMSException
      Description copied from interface: Message
      Sets the Destination object to which a reply to this message should be sent.

      The JMSReplyTo header field contains the destination where a reply to the current message should be sent. If it is null, no reply is expected. The destination may be either a Queue object or a Topic object.

      Messages sent with a null JMSReplyTo value may be a notification of some event, or they may just be some data the sender thinks is of interest.

      Messages with a JMSReplyTo value typically expect a response. A response is optional; it is up to the client to decide. These messages are called requests. A message sent in response to a request is called a reply.

      In some cases a client may wish to match a request it sent earlier with a reply it has just received. The client can use the JMSCorrelationID header field for this purpose.

      Specified by:
      setJMSReplyTo in interface Message
      Overrides:
      setJMSReplyTo in class ActiveMQMessage
      Parameters:
      dest - Destination to which to send a response to this message
      Throws:
      JMSException - if the Jakarta Messaging provider fails to set the JMSReplyTo destination due to some internal error.
      See Also:
    • getJMSReplyTo

      public Destination getJMSReplyTo() throws JMSException
      Description copied from interface: Message
      Gets the Destination object to which a reply to this message should be sent.
      Specified by:
      getJMSReplyTo in interface Message
      Overrides:
      getJMSReplyTo in class ActiveMQMessage
      Returns:
      Destination to which to send a response to this message
      Throws:
      JMSException - if the Jakarta Messaging provider fails to get the JMSReplyTo destination due to some internal error.
      See Also:
    • checkPrefix

      protected SimpleString checkPrefix(SimpleString address)
      Overrides:
      checkPrefix in class ActiveMQMessage