Work between multiple processes
Patrick Zhou
zxpatric at gmail.com
Tue Jan 10 17:57:51 EST 2017
Hi Irmen,
I have successfully got it to work with both side as python but so far having trouble with pyrolite.jar which is downloaded from https://mvnrepository.com/artifact/net.razorvine/pyrolite/4.4
Having simple codes as:
public static void main(String[] args) {
// System.out.println("Hello world");
try {
String uri = "PYRO:obj_12a65b09f95f4ee9bec5958f819ced45 at localhost:64404";
PyroURI pyURI = new PyroURI(uri);
PyroProxy pyroP = new PyroProxy(pyURI);
Object result = pyroP.call("getDst");
String message = (String) result;
System.out.println("result message=" + message);
pyroP.close();
}
catch (IOException e1) {
System.out.println(e1.getMessage());
}
catch (PickleException e2)
{
System.out.println(e2.getMessage());
}
catch (PyroException e3)
{
System.out.println(e3.getMessage());
}
}
which "getDst" works on Java but hangs on handshake() in the call function.
Any thought? Thanks. -P
More information about the Python-list
mailing list