• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Static Data

 
Raj Joe
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is static data managed in clustered environment
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll get a copy of static variables per Class instance. That's at least one per JVM, and more if the same class is loaded by multiple ClassLoaders. In short, they are not shared across servers in a cluster. If you have a need for such sharing, google for "java distributed cache" and see other people working on the problem.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Distributed Java forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic