"with other JVM (" + connectionHost
+ ":" + connectionPort + ", exception: " + ex + ")";
}
});
} else {
throw new JemmyException("Failed to establish socket " +
"connection with other JVM (" + connectionHost
+ ":" + connectionPort + ")", ex);
}
}
outputStream = new ObjectOutputStream(socket.getOutputStream());
inputStream = new ObjectInputStream(socket.getInputStream());
connectionEstablished = true;
ready = true;
System.out.println("Connection established!");
setAutoDelay(autoDelay);
} catch (IOException ex) {
throw new JemmyException("Failed to establish socket connection " +
"with other JVM (" + connectionHost + ":" + connectionPort
+ ")", ex);
}
}