• Post Reply Bookmark Topic Watch Topic
  • New Topic

listener declared in DD

 
A. Aka
Ranch Hand
Posts: 98
  • 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: 98
  • 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!