Class ActiveMQMapCompatibleMessage

    • Method Detail

      • 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:
        Message.getJMSReplyTo()