Thread thread = new Thread() {
public void run() {
try{
- System.out.println("Created server with port: " + ports[0]);
rmiObj = new IoTRMIObject(ports[0]);
- Object retObj = null;
while (true) {
byte[] method = rmiObj.getMethodBytes();
// Permission checking
paramCls2[pos] = int.class;
paramObj2[pos++] = data[i].year;
}
- System.out.println(Arrays.toString(paramObj2));
+ //System.out.println(Arrays.toString(paramObj2));
Object retObj = rmiCall.remoteCall(objectId, methodId2, retType2, null, paramCls2, paramObj2);
// RETURN STRUCT
// Get the length of the struct first