This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 9291
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Listeners Notification
 
Similar Threads
Clarification
Are Session Activation Listeners configured in DD?
JavaBean Listener Naming Rules?
IBM 484
About Sessions