Adjustments in stubs and skeletons for callback in callback; using different ports...
[iot2.git] / iotjava / iotrmi / Java / basics / TestClass.java
index 1bfe8e24cb2045decb77fa21c3b19057567c99ed..124800490d16454092e4d5e1fa23fd36a72e78b5 100644 (file)
@@ -74,10 +74,12 @@ public class TestClass implements TestClassInterface {
 
 
        public int callBack() {
-
+               
                int sum = 0;
+               System.out.println("Callback called!");
                for (CallBackInterfaceWithCallBack cb : cblist) {
                        sum = sum + cb.printInt();
+                       cb.needCallback(this);
                }
                return sum;
        }