• Post Reply Bookmark Topic Watch Topic
  • New Topic

question regarding listeners  RSS feed

 
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 ;-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!