Results 1 to 3 of 3

Thread: RmiServiceExporter - change port

  1. #1
    Join Date
    Jun 2008
    Posts
    23

    Default 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. #2
    Join Date
    Nov 2009
    Posts
    1

    Default

    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.

  3. #3
    Join Date
    Jun 2008
    Posts
    23

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