|
From: Mikkel D. <mi...@co...> - 2003-03-28 18:18:43
|
>> when we start again, we get a:
>> java.net.BindException: Address already in use: JVM_Bind
>> exception.
>> Is there something I'm missing (again) ???
Not as far as I know. My piece of code to start the registry looks like =
this:
try {
try {
java.rmi.registry.LocateRegistry.createRegistry
(java.rmi.registry.Registry.REGISTRY_PORT);
log.event("Started RMI registry");
} catch (java.rmi.RemoteException rex) {
log.event("Could not create RMI registry. It might =
already have been started");
}
Naming.rebind("//"+bindName+"/"+RMI_BIND_NAME, remoteObject=
);
} catch (Exception e) {
log.sys("Could not bind rmi",e);
}
Hope it helps.
/Mikkel
|