Link to home
Start Free TrialLog in
Avatar of hipal
hipalFlag for United States of America

asked on

shared file server for two remote java apps

Thanks for continued help.

My java application is supposed to be run on two computer on a network.

(Same application individually on two remote machines). Both are them are some kind of photo organizer. My framework already takes care of synchronized dragging and zooming.

My only problem is how to create a shared repository of files over network. I want functionalities like if user on machine-1 deletes an image from frame .. it should also get deleted from the frame in the app running on machine 2.

Thank You!
ASKER CERTIFIED SOLUTION
Avatar of a_b
a_b

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CEHJ
What OS?
Avatar of hipal

ASKER

windows 7
Just get each app to connect to the same network share for the purpose of handling files
Avatar of hipal

ASKER

same network share ?
Yes, that would be the 'shared file server' of your question title
Avatar of a_b
a_b

Expanding on the suggestion posted by CEJH. If both the clients are configured off a file - you could have a File observer mechanism implemented. Eg. App1 and App2 start and read their cnfigurations from a common file. If App1 changes the config; writes the change to the common file. Since App2 is observing changes to the file - a notification is sent to the App2 about the change and then App2 updates its config by reading the new contents of the file. There was a library that I had used some time back for the file observer; but I cannot seem to recall then name.
Avatar of hipal

ASKER

Oh this founds great.

I will try to look for that library. In case you can find it please post it.

Thanks a ton for all the time, help and efforts.
hipal - not sure why you ignored my comment ...
Avatar of hipal

ASKER

oh I am so sorry CHEJ, if you felt that way.

It is just that your advice sound perfect to me of
"Just get each app to connect to the same network share for the purpose of handling files"

I was just looking for more options .. thanks again !
Avatar of hipal

ASKER

I forgot to distribute points .. :(

my fault .. :(
OK - never mind :)