[eclipse-clp-users] Remote Connection Prolog

From: Mario Gianni <gianni.mario_at_dis.uniroma1.it>
Date: Wed, 15 Sep 2010 14:42:29 +0200 (CEST)
Hi all

I'm try to build a remote application that call Prolog Engine and execute
a command

from the Eclipse Side I write

remote_connect('localhost'/6000,P,G).

from Java Application I have writen this code in a try/catch block

 InetAddress host = InetAddress.getByName("localhost");
 RemoteEclipse eclipse = new RemoteEclipse(host,6000);
 eclipse.rpc("env"); % for example
 eclipse.disconnect();

the connection is established but after command execution rpc I receive by
eclipse this message

uncaught exception in exit_block(peer_abort_disconnected)

Two questions:

1) how to manage this exception
2) how to not disconnect from eclipe

thanks

best regards

Mario

-- 
Mario Gianni
ALCOR Lab
Via Ariosto 25
00185 ROMA
+39 0677274155
Received on Wed Sep 15 2010 - 12:42:37 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET