Originally posted by Paul Bourdeaux:
Yes, that is what I was referring to. For more info, check out
this thread.
Since I wrote that reply in that
thread I've changed my server to have a GUI and allow changing the port. What I do is let the user specify a new port , but inform her that she will need to restart the server for that change to be effective. This behaviour is common for Windows configuration changes and should be no surprise to a network admin, it's also infrequent. After even more research, including hacking some low level stuff, I can confirm that that ObjID prevents you from closing a registry that you have opened in your application and starting another one.
If you really want to do this you can use Runtime.exec("rmiregistry") and fight all those problems with platform dependencies and controlling a seperate process.
Or you can take the easy way out and just use port 1099, be sure to explain why you chose this one.
[ January 28, 2005: Message edited by: peter wooster ]