0

I want to be able to launch multiple instances of a .jar, than when one updates a file "test".ser. to have the other instance present that change, pretty much the same way it would do i within the same instance.

Basically created two instance and see if data changes on different pages, does change within same instance but does not update on second instance?

All files are in same spot. I am using .ser files.

    try {
        FileInputStream fin3 = new FileInputStream("buildingEntryList.ser");
        ObjectInputStream ois3 = new ObjectInputStream(fin3);
        List<TreeMap> list = (ArrayList) ois3.readObject();

        for (TreeMap s : list){
            Building.buildingEntryList.add(s);
        }

        ois3.close();
    }
    catch (Exception e) { 
        e.printStackTrace(); 
    }

0 Answers0