String nameString = serverName + "/" + serviceName;
try {
receiver = (RmiJournalReceiverInterface) Naming.lookup(nameString);
} catch (MalformedURLException e) {
throw new JournalException("Problem finding RMI registry", e);
} catch (RemoteException e) {
throw new JournalException("Problem contacting RMI registry", e);
} catch (NotBoundException e) {
throw new JournalException("'" + serviceName
+ "' not registered at '" + serverName + "'", e);
}
}