Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on attributes

 
Sandya Bhaskara
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
page 255 of HFS says that in distributed applications http session objects and attributes move from one VM to another .servlet context/servletcontext attributes are replicated...i have a question...what happens if the attributes of servletcontext/configuration are changed in one virtual machine... will that affect the servletcontext attributes in a different virtual machine(will they be changed too)?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can ServletContext values be changed at all?
 
Sandya Bhaskara
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm talking about the servletcontext attributes....u can set and get the attributes...so in distributed applications if u set the servletcontext attributes on one VM will the servletcontext attributes on a different VM change?
 
Bahadar Khan
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServletContext is duplicated per JVM. This implies that each VM should have its own ServletContext and no doubt each Context will have same context parameters but as there is one Context per VM, so any attribute change in one VM shouldn't be available to another VM. There seems a possibility that ContextListeners may be implemented in such a way that each change should trigger an event so the ServletContext's in other VM should update their attribute list. This is I THINK..but not sure. Hope somebody might shed a light on this subject. But definitly a very intelligent question.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic