File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in Listner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in Listner" Watch "Doubt in Listner" New topic

Doubt in Listner

Shashank vanjare

Joined: Apr 10, 2008
Posts: 9
1)What will be the order of Listner Notification when the conatainer is
about to shut down?
2)When the container shuts down is session tracking cookies deleted?
Muks Sam
Ranch Hand

Joined: Apr 09, 2004
Posts: 47

Hi Shashank,

While container shuts down, request listeners, session listeners an finally contextlisteners are expunged. Session tracking cookies are not deleted because they are present on client machine. Cookies generally are sent back and forth from client and received by server (after first request to create). So even if you log off from site or close the browser (virtually away from container) then also in the browsers history, you can find the cookies present.


Shashank vanjare

Joined: Apr 10, 2008
Posts: 9
Thank you Mukul!
I agree. Here's the link:
subject: Doubt in Listner
It's not a secret anymore!