Fixing bug for return value from callback in C++ (sendReturnObj is called twice)...
[iot2.git] / iotjava / iotrmi / Java / sample / TestClass_Stub.java
index 43fcaf0abd0070e705f0c54783f4ed0b404474d9..adad2188ff00bd7446aa0d42722c6c39dac06f9f 100644 (file)
@@ -52,7 +52,7 @@ public class TestClass_Stub implements TestClassInterface {
                ports = _ports;
                rmiCall = new IoTRMICall(_port, _address, _rev, methodSignatures);
                listCBObj = new ArrayList<CallBackInterface>();
-               init_CallBack();
+               ___initCallBack();
        }
 
 
@@ -73,7 +73,7 @@ public class TestClass_Stub implements TestClassInterface {
 
 
        // Initialize callback
-       public void init_CallBack() {
+       public void ___initCallBack() {
 
                Thread thread = new Thread() {
                        public void run() {
@@ -117,7 +117,6 @@ public class TestClass_Stub implements TestClassInterface {
                        public void run() {
                    try{
                                        CallBack_Skeleton cbskel = new CallBack_Skeleton(_cb, ports[0]);
-                                       cbskel.waitRequestInvokeMethod();
                                } catch (Exception ex){
                                        ex.printStackTrace();
                                        throw new Error("Error instantiating class CallBack_Skeleton!");