Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listeners Notification

 
sravanthi pulukuri
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Whizlabs exam says
On Application Shutdown listeners arenotified in the reveerseorder of there declaration??
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic