• Post Reply Bookmark Topic Watch Topic
  • New Topic

question regarding listeners

 
Aravind Elango
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Just started my certification prep and am going with HFS. I have a question regarding the behaviour of listeners. Lets say I have 2 listeners (ServletContextAttributeListener and ServletContextListener) & some context attributes associated with my web app. I can understand how they are used individually. But am unsure if the Application unloading (say tomcat shutdown) will cause attributeRemoved() in the ServletContextAttributeListener to be fired.

Also, is this behavior consistent with sessions/ requests or do they have different behavior ?

Thanks,
Aravind

My Code has no bugs .... Only random behaviours ;-)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!