I am using TS Server Version 2.1.2.
And I am using java client to connect to Tspace Server.
Java client continuously runs and checks if the Tspace Server is running or not
(along with some other work like reading/consuming tuples and processing ).
Client application is connecting to TSpace Server using the following (First Time):
TupleSpace controlTsp= new TupleSpace("controlTsp","localhost");
Once it is connected to Tspace Server , I stop the Tspace server.
and try to connect to the same tuple space again (Second time)using my java client application:
TupleSpace controlTsp= new TupleSpace("controlTsp","localhost");
when I try to connect to the TupleSpace this time (second time) I got the following messages :
main: Socket closed
com.ibm.tspaces.TupleSpaceCommunicationException: Socket closed
at com.ibm.tspaces.TSCmdSocketImpl.talkToAServer(TSCmdSocketImpl.java:1132)
at com.ibm.tspaces.TSCmdSocketImpl.command(TSCmdSocketImpl.java:506)
at com.ibm.tspaces.TSCmdSocketImpl.command(TSCmdSocketImpl.java:419)
at com.ibm.tspaces.TupleSpace.<init>(TupleSpace.java:645)
at com.ibm.tspaces.TupleSpace.<init>(TupleSpace.java:820)
at com.ibm.vep.em.utility.MonitorUtility.main(MonitorUtility.java:968)
Question :
a) Can I connect to TupleSpace again in the same client after I restart the Tspace Server?
b) The TS Server version 2.1.2 is not having any thing like disconnect from Tspace server.
Is there any way we can disconnect from TS Server and connect to it again in version 2.1.2?
It is like the Client is continuously running , I am stopping the server and then restart the server again and try to get the connection in the same client