Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletContext Events

 
vasu maj
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Manning's book again....

A servlet container is not required to propogate ServletContextEvents and ServletContextAttribute Events to different JVMs. This means that changes to the ServletContext in one JVM may not trigger a method call on a ServletContext Listener or a ServletContextAttributeListener in another JVM.

There is a quizlet immediately after this paragraph....

Your web application uses a ervletContextListener to page support people whenevr it goes down. What would be the impact on this functionality if the web application were deployed in a distributed environment?

The answer given was that there wouldn't be any impact. Does it mean that the paragraph above is talking about only changes made to the context?
Thanks,
Vasu
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The assumption made by the answer is that you would still want to be paged when any one server in the cluster went down.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic