I have a main application (server) that reads and writes files from/to a specific path and gives them a specific ID (counter) (for example 0001.txt). Every time that the application reads or writes from/to a file, this ID is increased or decreased.
I want to make a client application(that uses a different Java Virtual Machine) to read and write from/to the same path which will use the ID from the server application to increase or decrease it.
How can i do this without having synchronization problems, i.e. by using the same ID both in the client and server application?
I use jdk 1.2.2 and jre 1.2, SUN Solaris.
Thanks in advance
tzole
I want to make a client application(that uses a different Java Virtual Machine) to read and write from/to the same path which will use the ID from the server application to increase or decrease it.
How can i do this without having synchronization problems, i.e. by using the same ID both in the client and server application?
I use jdk 1.2.2 and jre 1.2, SUN Solaris.
Thanks in advance
tzole