Skip to main content

alphaWorks  >  Forums  >  TSpaces  >  developerWorks

TupleSpace take method is not able to remove the Tuple    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
Vaibhav818

Posts: 3
Registered: Jun 30, 2008 06:47:24 AM
TupleSpace take method is not able to remove the Tuple
Posted: Aug 05, 2009 03:26:02 AM
Click to report abuse...   Click to reply to this thread Reply
I am preparing a tuple with all the inputs as String except one which is serializable object.
TupleSpace controlTsp= new TupleSpace("controlTsp","localhost");
Tuple commandTuple = new Tuple();
commandTuple.add("msg","ATESensor");
commandTuple.add(new FieldPS(new LabResourceInfo(LabResourceNodeInfo)));
controlTsp.write(commandTuple); (This will write the tuple on the Tspace which includes serializable object).
LabResourceInfo is a serializable object

Question : when I try to take the tuple from Tspace it is not able to remove the Tuple from Tspace.
controlTsp.take(commandTuple) is not able to remove the tuple which contains the serializable object.
Is there any way the take method can remove the tuple from the Tuplespace.

Point your RSS reader here for a feed of the latest messages in all forums