private Channel channel;
private RpcCallback callback;
private byte[] rpcId;
-
+ private int replyMessageOptions = 0;
+
private HashMap<RpcCollectorKey, RpcCollector> responseMap = new HashMap<RpcCollectorKey, RpcCollector>();
/**
rmsg.reply = true;
rmsg.message = reply;
try {
- channel.send(new Member[] {sender}, rmsg,0);
+ channel.send(new Member[] {sender}, rmsg,
+ replyMessageOptions & ~Channel.SEND_OPTIONS_SYNCHRONIZED_ACK);
}catch ( Exception x ) {
log.error("Unable to send back reply in RpcChannel.",x);
}
this.rpcId = rpcId;
}
+ public int getReplyMessageOptions() {
+ return replyMessageOptions;
+ }
+ public void setReplyMessageOptions(int replyMessageOptions) {
+ this.replyMessageOptions = replyMessageOptions;
+ }
+
/**
*
* Class that holds all response.
If maxInactiveInterval is negative, an access message is not sending.
(kfujino)
</fix>
+ <fix>
+ <bug>50184</bug>: Add an option to the RpcChannel to enable the Channel
+ send options to be set for the reply message. Based on a patch by Ariel.
+ (markt))
+ </fix>
</changelog>
</subsection>
<subsection name="Web applications">