FYI I found the answer to my question in an (oldie but goodie) post on JINI-USERS:

    
http://archives.java.sun.com/cgi-bin/wa?A2=ind0005&L=JINI-USERS&D=0&T=0&P=24090

Also, it looks like GigaSpaces has come up with a more straightforward solution:

    
http://www.gigaspaces.com/wiki/display/XAP7/How+to+Configure+Unicast+Discovery

Geoff.

On Sep 20, 2009, at 2:25 AM, Geoffrey Arnold wrote:

Hi All,

When employing the ServiceDiscoveryManager and unicast discovery to build a LookupCache of ServiceRegistrars, I've noticed that it takes ~30 minutes for our ServiceDiscoverListeners to receive the serviceRemoved event when a registrar goes away. When using multicast discovery, the event is triggered almost immediately.

I believe that this discrepancy is due to the nature of unicast v. multicast discovery, but I'm guessing that there is a configuration property somewhere that I can use to decrease some Lease duration and minimize the wait time.

Currently we are using the default configurations for our (transient) ServiceRegistrars and our ServiceDiscoveryManager.

Thanks in advance,
Geoff.

Reply via email to