• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Listener

 
Ranch Hand
Posts: 77
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
See where your hand is? Not there. It's next to this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic