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

Which listener type needs web.xml entry?

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I read the following question in a mock exam?

6. Which of the following listener types don�t need to be configured in the deployment descriptor file? [Select all correct answers]
A. HttpSessionListener
B. HttpSessionBindingListener
C. HttpSessionAttributeListener
D. HttpSessionActivationListener
E. HttpSessionEventListener

I belive the correct ans should be both B and D. But, the answer given is only option B.

Pls. correct me if I'm wrong here?

Thanks,
Reema
 
Elan Ram
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reema,

you are right. :-)
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Elan!
 
Arunava Bhattacharya
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reema,

I also have a similar dooubt...in HFSJ book it is clearly mentioned that it is only HttpSessionBindingListener which does not need any entry in web.xml.But in whizlabs mock exams i found both HttpSessionActivationListener and HttpSessionBindingListener do not need to be configured in web.xml.....???

Which one is right??
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think HFSJ sould be named Head First Errors...it's a BIG error out there...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/view?DeclaringListeners
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic