Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote Caching of data  RSS feed

 
Venkat Rao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to configure two web servers where the requests would be forwarded to. We have a situation where the users can login from multiple IP addresses but still needs to check the data where they last left.
How do I save my report summaries remotely so that irrespective of web server the user hits, data would be grabbed from a cache.
I am new to the distributed world in Java, your answers in detail would be greatly appreciated.
Thanks,
Venkat
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to look at JavaSpaces - try searching at java.sun.com
Sorry I don't have any more detail for you, I experimented with JavaSpaces when writing my SOAP book. It is a good technology for loosely coupled systems.
Bill
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need is a place to persist user session information on the server side. The most common approach to this is a login form that gathers such data as part of the authorization process.
You could think of doing this by having one web server contact the other when necessary to retrieve session data. That's probably 'easiest' in the short term, but bound to get messy.
A simple database that both web servers use for a backend makes the most sense to me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!