Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Event Problem

 
sanjeevkr tarar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have done tomcat clustering using Apache.and in my web application i have an HttpListener Class in which i am updating database for user log out when session timeout.

when one of tomcat instance in clustering is down then it's session value is replicated to others and user do work properly.

Now My problem is when i shut down one of cluster instance then it call the Listener Class and updates the Database and marks the user as logout....

I do not want to call the listener class OR how can i know that tomcat is shut down e.g. any event that i can get so that i will not update database.


Please give your valuable ideas.....


Thanks,
Sanjeev
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic