posted 19 years ago
Hi All
Thought I would 'quickly' build a GUI for the server. Got it to start and stop but when it comes to restarting there is an error. To start the server I have this line:-
LocateRegistry.createRegistry(portAddress);
How do I re-start without an error of 'ObjID already in use', caused by re-running the above line?
I have tried the Registry.getRegistry(port) but it seems to return the same reference before and after the creatRegistry line. So not sure how to spot it.
A cheat would be to have a boolean flag this is true after its first created.
Any ideas
Thanks
Adam Till<br />SCJP SCJD SCWCD