TibrvCmTransport.sendReply()
Method
Declaration
voidsendReply
(
TibrvMsg replyMsg,
TibrvMsg requestMsg)
throws TibrvException
Purpose
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 |
|
Send this outbound reply message. |
|
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). |