RmiServiceExporter - change port
hi,
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):
code:
exporter.setRegistryPort(1234);
exporter.afterPropertiesSet();
// change
exporter.setRegistryPort(1555);
exporter.afterPropertiesSet();
Result:
the service is still on port 1234.
What should i do?
Thanks.
unbind port in RmiServiceExporter
hi,
i didn't understand your answer.
i have call to RmiServiceExporter.destroy() function.
but the port is still alive.
RmiServiceExporter.destroy().
RmiServiceExporter.setRegistryPort(newPort);
RmiServiceExporter.afterPropertiesSet();
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.