This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Is HttpSessionListnere destroy method get called in this case Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is HttpSessionListnere destroy method get called in this case " Watch "Is HttpSessionListnere destroy method get called in this case " New topic
Author

Is HttpSessionListnere destroy method get called in this case

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


I am Back

Is HttpSessionListener method sessionDestroyed get called when session.invalidate() is called upon ?


Save India From Corruption - Anna Hazare.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32636
    
216

Yes, your understanding is correct.

[edited to fix typo]


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9435
    
  20

Its good to see that you are back (where were you gone BTW (just kidding))

I've not tried it but I think it will definitely be called...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Jeanne for the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is HttpSessionListnere destroy method get called in this case
 
It's not a secret anymore!