• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Data sharing in clustered WAS6 environment

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently building an application that want to have a HashMap act as a cache of the system. It is fine when in a single server environment. However, when putting the application in the WAS6 clustered environment, the cache is not synchronized.

I want to know if there is any way to have the cache synchronized? Thanks.
 
author & internet detective
Posts: 40283
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ouranos,
Welcome to JavaRanch!

WAS 6 comes with command caching. Since the server manages the cache, it handles synchronizing across databases.
 
Ouranos Chan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply!
I am a newbie in using the WAS 6, can you tell me how to use the command caching? or any website reference. Really thanks!
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly are you trying to cache, and why do you need to cache it?

In a clustered WebSphere environment, the HttpSession is clustered for you, and the data stored in the session is highly optimized for client access. Leave the caching for the system is my best advice. People much smarter and better looking then you and I have implemented it. You might be trying to re-engineer a solution that is already quite stable and reliable.

-Cameron McKenzie
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic