TibrvCmTransport.sendReply()

Method

Declaration

void sendReply(
    TibrvMsg    replyMsg,
    TibrvMsg    requestMsg)
  throws TibrvException

Purpose

Send a labeled reply message.

Remarks

This convenience call extracts the reply subject of an inbound request message, and sends a labeled 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 can send a labeled reply to an ordinary message.

This method automatically registers the requesting CM transport, so the reply message is certified.

Parameter

Description

replyMsg

Send this outbound reply message.

requestMsg

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

If this message has a wild card reply subject, the method produces an error.

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

TibrvCmTransport.send()

TibrvCmTransport.sendRequest()