How could I create RMI server dynamically? what is the difference between setRegistryPort and setServicePort? which one I must set? Also, if I use setServicePort(0) to create RMI, how could I get the port number to clinet?
Thanks a lot.
How could I create RMI server dynamically? what is the difference between setRegistryPort and setServicePort? which one I must set? Also, if I use setServicePort(0) to create RMI, how could I get the port number to clinet?
Thanks a lot.