Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-15-2008, 02:11 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
Tomcat Problem
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-16-2008, 07:16 AM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
Any idea about this.............
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 09:31 AM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
any idea about : How to track events in Tomcat..like shutdown
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-16-2008, 12:53 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
not want to call SessionListener when tomcat shutdown.

any idea.......
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat In Eclipse - Sysdeo Tomcat Plug-in JavaForums Eclipse 1 02-13-2008 11:33 AM
New to JSF, simple problem with Eclispe and Tomcat nibeck JavaServer Pages (JSP) and JSTL 0 12-16-2007 06:53 PM
tomcat problem osval New To Java 2 07-29-2007 09:13 PM
Tomcat problem Peter Advanced Java 2 06-29-2007 11:43 AM
Problem with tomcat and jboss Alan Eclipse 3 05-08-2007 07:18 AM


All times are GMT +3. The time now is 10:51 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org