This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

listener config in web.xml

 
Yasir Karim
Greenhorn
Posts: 17
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Referring to all the listeners related to Servlet, it is a must to configure those in web.xml? Is there any listener that is not required to be configured in web.xml?

Cheers
 
Ankur Gargg
Ranch Hand
Posts: 55
Java jQuery Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two listeneres need not be configured in web.xml namely HttpSessionBindingListener and HttpSessionActivationListener.
 
Yasir Karim
Greenhorn
Posts: 17
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. But how does the container know that these are the listeners interested in listening for some events?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic