• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Question on attributes  RSS feed

 
Ranch Hand
Posts: 73
  • 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)?
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can ServletContext values be changed at all?
 
Sandya Bhaskara
Ranch Hand
Posts: 73
  • 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?
 
Ranch Hand
Posts: 81
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!