client.invoke(new OnewayCallbackTrigger("blip"));
// make sure we get the callback
Callback c = callbackHandler.getNextCallback(3000);
assertNotNull(c);
assertEquals("blip", c.getParameter());
// sleep for twice the timeout, to be sure
long sleepTime = ServerInvoker.DEFAULT_TIMEOUT_PERIOD + 60000;
log.info("sleeping for " + (sleepTime / 60000) + " minutes ...");
Thread.sleep(sleepTime);
log.debug("woke up");
client.invoke(new OnewayCallbackTrigger("blop"));
// make sure we get the callback
c = callbackHandler.getNextCallback(3000);
assertNotNull(c);
assertEquals("blop", c.getParameter());
}
finally
{
if (client != null)