Announcement Announcement Module
Collapse
No announcement yet.
RmiServiceExporter - change port Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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, 08:53 PM.

    Comment


    • #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, 05:58 AM.

      Comment

      Working...
      X