public void customResultAvailable(final ITestService ts) { // create a service call meta object and set the timeout if(to!=-1) { // ServiceCall.setInvocationProperties(to, true); ServiceCall call = ServiceCall.getOrCreateNextInvocation(); call.setTimeout(to); call.setRealtime(Boolean.TRUE); } // System.out.println("calling method: "+ServiceCall.getOrCreateNextInvocation()); callMethod(ts, 1, ret).addResultListener(new IResultListener<Void>() { public void resultAvailable(Void result) { ret.setFinished(); } public void exceptionOccurred(Exception exception) { ret.setException(exception); } }); } });
call.setRealtime(Boolean.TRUE); call.setProperty("extra", "somval");