Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Registering Listener in web.xml

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using HFSJ. For Listener, they have mentioned for HttpSessionBindingListener only no need to reister in web.xml..

But one of the thread in the forum mentioned for both HttpSessionBindingListener and HttpSessionActivationListener, there is no need of reistering in web.xml...

Which one is correct?
 
VijayKumar Sivagnanam
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael,

You dont have to register in web.xml for both HttpSessionBindingListener and HttpSessionActivationListener.

The mentioning about HttpSessionBindingListener being only listener that doesnt need to be registered with the web.xml in HFSJ is an error which they corrected in the Errata. HFSJ errata
 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is from the Enthuware SCWCD Exam:

Interfaces configured in web.xml:
1. ServletContextListener
2. ServletContextAttributeListener
3. ServletRequestAttributeListener (Newly added in Servlet 2.4)
4. ServletRequestListener (Newly added in Servlet 2.4)
5. HttpSessionListener
6. HttpSessionAttibuteListener
Interfaces NOT configured in web.xml:
1. HttpSessionBindingListener
2. HttpSessionActivationListener
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic