File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Listeners Notification" Watch "Listeners Notification" New topic
Author

Listeners Notification

sravanthi pulukuri
Ranch Hand

Joined: Mar 15, 2007
Posts: 125
hi,

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

Joined: Aug 03, 2008
Posts: 9321
    
  17

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: http://aspose.com/file-tools
 
subject: Listeners Notification