Re: JavaSpace.notify() "not reliable"

Gregg Wonderly <[email protected]> Thu, 10 May 2007 22:19:24 -0500
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Timur Mehrvarz wrote:
> Hi. While looking for a solution to a problem, I found this [1]:
>
>   "Many people get hung up on JavaSpace.notify() because it is “not
> reliable”. This needs careful explanation - most JavaSpaces will
> endeavour to deliver all appropriate events to a client. If the  client
> becomes permanently unavailable (NoSuchObjectException)  further events
> will not be delivered to it."
>
> Everything is working fine for me, for a while. But from a random
> moment on, my EventListener will not get called anymore, when they
> should. I don't think I am getting NoSuchObjectExceptions. My Jini VM
> and my apps VM are running side by side on the same intel Linux box.  I
> am using plain Jini2_1 with transient Outrigger.

Are you using the returned value from notify to get the associated Lease, and
then passing that off to a LeaseRenewalManager, or otherwise renewing it?

Gregg Wonderly

===========================================================================
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