• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Context in distributed environment

 
Nagamalini Pampati
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls explain this question....

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

Thanks in advance,
Malini
 
Saurabh Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am answering best to my understanding.

We have a ServletContext object per application per JVM. So, in distributed environment where you web app. is deployed on diff. nodes, you will have one "ServletContext" per node. So, implementing "ServletContextListerner" in distributed env. will page the support personnel if your app.crashes on any of these nodes.

Please correct me if I am wrong.

Thanks and regards,
Saurabh
 
Nagamalini Pampati
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it....thank you Saurabh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic