File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Sometimes Tomcat does not invoke sessionDestroyed() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Sometimes Tomcat does not invoke sessionDestroyed()" Watch "Sometimes Tomcat does not invoke sessionDestroyed()" New topic
Author

Sometimes Tomcat does not invoke sessionDestroyed()

Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 486
    
    2

I've been noticing that the tomcat 6.0.18 times does not invoke the method sessionDestroyed ... and I really do not know why!
In the test environment everything seems to work, but when this production, it seems that at times the listener is not invoked ...
Could someone help me?
There is a bug?
Best Regards.


Fernando Franzini - Java Blog
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
What is your evidence that shows a session is really being created, a Listener is being notified of the creation, but not the destruction?

We are talking about a HttpSessionListener, right?

Bill
Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 486
    
    2

We are talking about a HttpSessionListener, right?

yeap !!!
What is your evidence that shows a session is really being created, a Listener is being notified of the creation, but not the destruction?

I have a app control being done in the session creation and destruction. But I realize that sometimes the method of destruction is not being invoked. In my test environment always works (I mean just sessionDestroyed() no invoked!!) , but in a production environment it seems that sometimes does not work ... no errors/exceptions happen and so I do not know what 's happening.
Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 486
    
    2

I realized that sometimes tomcat does not run listener HttpSessionListener.sessionDestroyed() for some reason I have not figured out.
Maybe something related to GF not need memory and thus not possible dont clear the sessions end with timeout....
I would appreciate if anyone knows any information about it ...
Best Regars.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sometimes Tomcat does not invoke sessionDestroyed()