The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How to synchronize two different JVM?

Posted by tzole on March 22, 2001 at 3:34 AM

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




Replies:
  • reply Pavan Kumar Keely June 27, 2001 at 3:10 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us