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 Listeners Notification 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 "Listeners Notification" Watch "Listeners Notification" New topic

Listeners Notification

sravanthi pulukuri
Ranch Hand

Joined: Mar 15, 2007
Posts: 125

Whizlabs exam says
On Application Shutdown listeners arenotified in the reveerseorder of there declaration??
Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

I think this is about ServletContextListners. They are declared in the web.xml DD. At context initialization, they are notified in the order in which they are declared in the web.xml i.e. the listener declared first, will be notified first. But on context destruction, they are notified in the reverse order of their declaration i.e. the one declared last is notified first...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Listeners Notification
It's not a secret anymore!