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:

reply

Posted by Pavan Kumar Keely on June 27, 2001 at 3:10 PM

> 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 think, for your case, RMI may help you out.
Because we can have two diff. JVm communications using RMI.

Pavan KUmar Keely



Replies:

Sponsored Links



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