-
Nov 24th, 2009, 08:33 AM
#1
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.
-
Nov 24th, 2009, 12:10 PM
#2
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();
______________________
Devis comparatif mutuelle sante | Comparateur mutuelles sante | Comparer comparatif mutuel
Last edited by fguiuhggu; Nov 24th, 2009 at 07:53 PM.
-
Dec 9th, 2009, 04:41 AM
#3
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.
Last edited by nishki77; Dec 9th, 2009 at 04:58 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules