Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Static fields between two servers  RSS feed

 
David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for two Activatable RMI servers which are registered to the same rmid/rmiregistry to share a static member variable between themselves? In other words, if server1 changes the static field from 3 to 10, will the other server still see 3 or 10?
 
David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AHA! I think this is the answer- run all the servers in one JVM:
http://www.jguru.com/faq/view.jsp?EID=260449
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!