final Map internalSendPayload = sendPayload == null ? new HashMap() : sendPayload;
internalSendPayload.put(ONEWAY_FLAG, "true");
if (clientSide)
{
ThreadPool threadPool = getOnewayThreadPool();
Runnable onewayRun = new Runnable()
{
public void run()
{
try
{
invoke(param, internalSendPayload);
}
catch (Throwable e)
{
// throw away exception since can't get it back to original caller
log.error("Error executing client oneway invocation request: " + param, e);
}
}
};
threadPool.run(onewayRun);
}
else
{
OnewayInvocation invocation = new OnewayInvocation(param);
invoke(invocation, internalSendPayload);