• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can two programs access a same hashtable?

 
monojit choudhury
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!