RmiServiceExporter - change port
after i bound a service with RmiServiceExporter, i would like to change the port and bind the service to this port (it means closing the exising one):
the service is still on port 1234.
What should i do?
unbind port in RmiServiceExporter
i didn't understand your answer.
i have call to RmiServiceExporter.destroy() function.
but the port is still alive.
The destroy doesn't unbound the port.
I tried to open a socket to this port and failed, it means it's still in use.