Re: Connection Refused Exceptions
Vinod Johnson - Sun Microsystems <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
>
> I'm using the JoinManager and cover both of the cases you describe. I
> use a ServiceIDRecorder for registering the first service registration
> or if I have one persisted to disk, I will use that instead. To do this
> I use the two constructors like so:
>
> if(serviceIdSet) {
> joinManager = new
> JoinManager(serviceProxy,entries,serviceID,discoveryManagement,leaseRenewalManager);
>
> } else {
> joinManager = new JoinManager(serviceProxy,entries,new
> ServiceIdRecorder(),discoveryManagement,leaseRenewalManager);
> }
I'll ask the obvious, but are you quite confident that your service id
record/playback is functioning correctly? A perhaps unlikely edge case -
is there any chance that your service gets shutdown before
ServiceIdRecorder has been notified/completed? I'd imagine that if it is
a case of old registrations lying around, your service browser could at
times show more services than you expect.
--
- vinod
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to [email protected]