TibrvTransport.sendReply()

Method

Declaration

void sendReply(
    TibrvMsg replyMsg,
    TibrvMsg requestMsg)
  throws TibrvException

Purpose

Send a reply message.

Remarks

This convenience call extracts the reply subject of an inbound request message, and sends an outbound reply message to that subject. In addition to the convenience, this call is marginally faster than using separate calls to extract the subject and send the reply.

This method overwrites any existing send subject of the reply message with the reply subject of the request message.

Parameter

Description

replyMessage

Send this outbound reply message.

requestMessage

Send a reply to this inbound request message; extract its reply subject to use as the subject of the outbound reply message.

Warning 

Give special attention to the order of the arguments to this method. Reversing the inbound and outbound messages can cause an infinite loop, in which the program repeatedly resends the inbound message to itself (and all other recipients).

See Also

TibrvMsg.getReplySubject()