• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

listener

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to implement an application level listener in web.xml, i.e. this listener is not included in the <servlet> section. It is just in the <web-app> section. Just wondering --- when will this listener be effective ? will it be effective as soon as the .war is loaded on the server ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the API for ServletContextListener:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html

This is also covered in detail in the Servlet Spec.
You can find a link to the spec in my signature.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic