This forum has been archived. Please start a new discussion on GitHub.

refreshPublishedEndpoints vs -h


We've just moved to Ice 3.3.1 and are looking into implementing interface monitoring using refreshPublishedEndpoints(). Our application allows listening on all interfaces, which we will be changing to use -h In the event we had specified an endpoint for a specific interface (thus used -h <ip address>) and want to reconfigure due to a network interface change, is there a recommended solution? If it's complex and disruptive to existing connections so we should only allow monitoring when listening on, that'd be good to know as well.



  • dwayne
    dwayne St. John's, Newfoundland
    If you application is listening on a specific host and you want it to listen on a different host then need to stop/restart the application, or at least recreate the object adapter with the new endpoint. refreshPublishedEndpoints cannot be used this as it does not change interface that adapter is listening on, just updates the list of ips that corresponds to that interface for publishing in proxies created using the adapter.