Separating socket creation from callback method, so that this method can be called...
[iot2.git] / iotjava / iotrmi / Java / sample / TestClass.java
index f23ffd05ff7a585a50e4cd600f5dfcc9552b1818..1c95b3a6ac3f9f8bc671253d3f9da45449a4e8d5 100644 (file)
@@ -103,12 +103,12 @@ public class TestClass implements TestClassInterface {
 
        public int callBack() {
 
-               /*int sum = 0;
+               int sum = 0;
                for (CallBackInterface cb : cblist) {
                        sum = sum + cb.printInt();
                }
-               */
-               final CallBackInterface cb1 = cblist.get(1);
+               
+               /*final CallBackInterface cb1 = cblist.get(1);
                final CallBackInterface cb2 = cblist.get(2);
 
                Thread thread1 = new Thread() {
@@ -139,9 +139,10 @@ public class TestClass implements TestClassInterface {
                    }
                }
            };
-               thread2.start();
+               thread2.start();*/
 
-               return 1;
+               //return 1;
+               return sum;
        }