aspose file tools
The moose likes Distributed Java and the fly likes Can two programs access a same hashtable? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Can two programs access a same hashtable?" Watch "Can two programs access a same hashtable?" New topic
Author

Can two programs access a same hashtable?

monojit choudhury
Greenhorn

Joined: Nov 20, 2000
Posts: 23
hi
Is it possible using RMI that two programs access the same hashtable so that whenever one program modifies the hashtable the other one gets the updated data?
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Hi Monojit -
This is certainly possible, and there are several different ways to do it. Probably the easiest is to create and maintain the hastable on the RMI server program, and make it accessible remotely to any clients.
If you want the client to be updated as hashtable modifications (e.g., "events") occur, a remote event-handling system can do the trick for you.
Look through the back issues of Java Report Online -- there are several useful articles on remote event-handling systems.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can two programs access a same hashtable?
 
Similar Threads
how to start tomcat and resin at the same time?
Synchronizing IO Streams
HashMapDefinition
A case where Java DB(derby) failing,plz help
Iterator Vs Enumerator