Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Remote Caching of data

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic