This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Static Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Static Data" Watch "Static Data" New topic
Author

Static Data

Raj Joe
Ranch Hand

Joined: Oct 15, 2004
Posts: 41
How is static data managed in clustered environment
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Distributed Java forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Static Data
 
Similar Threads
Static mmbers
Member class can have static variables??
locking style
Static Data
String Problem