System.out.println("command: " + command);
for (Iterator it = callbackHandlers.iterator(); it.hasNext(); )
{
InvokerCallbackHandler callbackHandler = (InvokerCallbackHandler) it.next();
Callback cb1 = new Callback(command + "1");
HashMap returnPayload1 = new HashMap();
returnPayload1.put(ServerInvokerCallbackHandler.CALLBACK_ID, command + "1");
returnPayload1.put(ServerInvokerCallbackHandler.CALLBACK_LISTENER, this);
cb1.setReturnPayload(returnPayload1);
if (REMOTING_ACKNOWLEDGEMENT_TEST.equals(command))
{
returnPayload1.put(ServerInvokerCallbackHandler.REMOTING_ACKNOWLEDGES_PUSH_CALLBACKS, "true");
}
else
{
returnPayload1.put(APPLICATION_ACKNOWLEDGEMENT_TEST, "true");
}
callbackHandler.handleCallback(cb1);
Callback cb2 = new Callback(command + "2");
HashMap returnPayload2 = new HashMap();
returnPayload2.put(ServerInvokerCallbackHandler.CALLBACK_ID, command + "2");
returnPayload2.put(ServerInvokerCallbackHandler.CALLBACK_LISTENER, this);
cb2.setReturnPayload(returnPayload2);
if (REMOTING_ACKNOWLEDGEMENT_TEST.equals(command))
{
returnPayload2.put(ServerInvokerCallbackHandler.REMOTING_ACKNOWLEDGES_PUSH_CALLBACKS, "true");
}
else