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

Listener

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
On PN-254 of HFSJ, in Bang box it is mentioned that, you have to configure HttpSessionListener, HttpSessionActivationListener & HttpSessionAttributeListener in DD. But According to errata, you dont have to configre HttpSessionActivationListener in DD.
I am just confused..
can anyone please clearify that which is the correct one?

2nd Question
------------
HttpSessionBindingListener and HttpSessionActivationListener dont require to be configured in DD.
So, how container will decide the order of execution if more than one class is implementing the same listener?

Thanks.
Imran
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About question 1, HttpSessionBindingListener and HttpSessionActivationListener don't need to be declared in the descriptor.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About question 2, HttpSessionBindingListener and HttpSessionActivationListener are implemented by attributes willing to know when they're about to be bound/unbound from the session, or activated/passivated. The calling order is not an issue here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic