log.severe("The argument of method update() are invalid");
throw new XmlBlasterException(glob, ErrorCode.INTERNAL_ILLEGALARGUMENT, ME, "Illegal sendUpdate() argument");
}
try {
if (expectingResponse) {
MsgInfo parser = new MsgInfo(glob, MsgInfo.INVOKE_BYTE, MethodName.UPDATE,
cbSessionId, progressListener, getCbMsgInfoParserClassName());
parser.setPluginConfig(callbackPluginInfo); // is usually null as it is loaded dynamically
parser.addMessage(msgArr);
Object response = requestAndBlockForReply(parser, SocketExecutor.WAIT_ON_RESPONSE, false);
if (log.isLoggable(Level.FINE)) log.fine("Got update response " + response.toString());
return (String[])response; // return the QoS
}
else {
MsgInfo parser = new MsgInfo(glob, MsgInfo.INVOKE_BYTE, MethodName.UPDATE_ONEWAY,
cbSessionId, progressListener, getCbMsgInfoParserClassName());
parser.setPluginConfig(callbackPluginInfo);
parser.addMessage(msgArr);
requestAndBlockForReply(parser, SocketExecutor.ONEWAY, useUdpForOneway);
return null;
}
}
catch (XmlBlasterException e) {