Re: take()-s of two associated but distinct entries

Calum Shaw-Mackay <[email protected]> Fri, 15 Sep 2006 12:05:53 +0100
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
>So you should really take under two transactions, but if you have any problem
> in processing you should write both entries back to the space in a
> single transaction.


Sorry that should read
So you should really take under two transactions, if the time delay
bettwen correlating entries could be significant, and potentailly
block other processing, but if you have any problem in processing you
should write both entries back to the space in a single transaction.

Addendum:
If however the time delay could be fairly short, or C is able to
handle multiple transactions simultaneously, then you could easily get
away with taking those entries under a single transaction. And
remember, because notify() is being called you know when eB has been
written, and you can then kick off your single transaction to take
both eA and eB

Just thought I'd clear that bit up

--Calum

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html