public boolean in(String url, String entry) {
try { //get list from registry
remoteObjects = Naming.list(url);
} catch (RemoteException e) {
System.out.println("Couldn't locate Registry");
} catch (MalformedURLException e) {
System.out.println("Couldn't parse URL string");
} catch (UnkownHostException e) {
System.out.println("Can't locate host. Spelling?
DNS running?");
}
for (int c = 0; c < remoteObjects.length; c++)
if (remoteObject[c].equals(entry))
return true;
return false;