Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

listener declared in DD

 
A. Aka
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

my question is which listener should be declared in DD (between those : ServletContextAttributeListener, HttpSessionListener, ServletRequestListener, ServletRequestAttributeListener, HttpBindingListener, HttpSessionAttributeListener, ServletContextListener, HttpSessionActivationListener)

My second question is if I declare a listener in DD which should not be, do I get an Exception ?

regards,
 
Abhilash Sharma
Ranch Hand
Posts: 67
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A. Aka wrote:hi,

my question is which listener should be declared in DD (between those : ServletContextAttributeListener, HttpSessionListener, ServletRequestListener, ServletRequestAttributeListener, HttpBindingListener, HttpSessionAttributeListener, ServletContextListener, HttpSessionActivationListener)

My second question is if I declare a listener in DD which should not be, do I get an Exception ?

regards,


See this Configuring Listeners
 
A. Aka
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
Sanjay Singh
Ranch Hand
Posts: 37
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My second question is if I declare a listener in DD which should not be, do I get an Exception ?


you will not get any error, that's what I can see in tomcat 7.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic