public boolean connect() {
		for(int i = 0; i < 3; i++) {
			try {
				_remoteObj = (ServerInterface) Naming.lookup("rmi://127.0.0.1:9090/server1");
				_remoteObj.ping();
				System.out.println("Connected to Server 1");
				return true;
			} catch(Exception ex) {
				System.out.println("Server 1 is not responding. \nRetrying to connect ...");
			}
		}
		for(int i = 0; i < 3; i++) {
			try {
				_remoteObj = (ServerInterface) Naming.lookup("rmi://127.0.0.2:9090/server2");
				_remoteObj.ping();
				System.out.println("Connected to Server 2");
				return true;
			} catch(Exception ex) {
				System.out.println("Server 2 is not responding. \nRetrying to connect ...");
			}		
		}
		return false;
	}