No, but I will take a look at JoinManager now, thanks for the tip. For some reason, I had thought it was the consumers of services that were responsible for taking leases on them, and renewing the leases. I guess I had that the wrong way around, which must explain why I am not winning by looking for the right methods to call on that side.
On 17 December 2010 15:29, Greg Trasuk <tras...@stratuscom.com> wrote: > > > Rupert: > > Registration in the lookup service is subject to leasing. Whoever > registers the service has to manage and renew the lease with each lookup > registrar. JoinManager will look after this for you, so you don't have > to bother with leases manually. Additionally, it makes sure you have > registered with all the lookup services that are discovered. Are you > using JoinManager on the side that registers the JMX connector? > > Cheers, > > Greg. > > > > > > > I think the LeaseRenewalManager constructor I want is this one: > > > > > > > *LeaseRenewalManager<../../../net/jini/lease/LeaseRenewalManager.html#LeaseRenewalManager(net.jini.core.lease.Lease, > > > long, > net.jini.lease.LeaseListener)>*(Lease<../../../net/jini/core/lease/Lease.html> > > > lease, > > > long desiredExpiration, > > > LeaseListener<../../../net/jini/lease/LeaseListener.html> > > > listener) > > > > > > I can't figure out where to get the Lease object from though. Or is it > > > something that I implement myself? > > > > > > Rupert > > > > >