public static void main(String[] args) {
		try {
			BufferedReader buff = new BufferedReader(new FileReader(
					Global.REPLICA_INPUT_PATH));
			String line;
			int id = 0;
			while ((line = buff.readLine()) != null) {
				StringTokenizer st;
				st = new StringTokenizer(line, Global.REPLICA_DELIM);
				String replicaHostname = st.nextToken();
				int replicaPortNo = Integer.parseInt(st.nextToken());
				String replicaPath = st.nextToken();

				LocateRegistry.createRegistry(replicaPortNo);

				replicaServer obj = new replicaServer(replicaHostname,
						replicaPortNo, replicaPath, id++);

				File replicaFolder = new File(replicaPath + "/replica"
						+ obj.replicaID + "/");
				if (!replicaFolder.exists())
					replicaFolder.mkdir();

				ReplicaServerClientInterface stub = (ReplicaServerClientInterface) UnicastRemoteObject
						.exportObject(obj, 0);
				// Bind the remote object's stub in the registry
				Registry registry = LocateRegistry.getRegistry(replicaPortNo);
				registry.rebind(Global.REPLICA_LOOKUP, stub);
			}

			buff.close();
			System.err.println("Replica Server ready");
		} catch (Exception e) {
			System.err.println("Replica Server exception: " + e.toString());
			e.printStackTrace();
		}
	}