• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Session Listener confusion

 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

HttpSessionBindingListener and HttpSessionActivationListener is for Attribute class itself right.

We dont need to declare those two Listeners in DD right? but in HFSJ said in page 256 they said HttpSessionActivationListener should declare in DD which is a mistake right.

Also it says HttpSessionActivationListener (in page 264) usually implement by an attribute class and some other class? what is this some other class? i guess its ususally implement only in attribute class right? is it an HFSJ mistake too?

Thank You.
 
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

We dont need to declare those two Listeners in DD right?


Right. Details are explained here.

what is this some other class?


I have no idea. It can be implemented by any class, but I think it only makes sense that attribute classes implement it.
 
Harshana Dias
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have no idea. It can be implemented by any class, but I think it only makes sense that attribute classes implement it



its like they said,

HttpSessionListener-----------------------------usually implement by Some other class
HttpSessionActivationListener------------------usually implement by An attribute class and Some other class
HttpSessionBindingListener---------------------usually implement by An attribute class
HttpSessionAttributeListener--------------------usually implement by Some other class
 
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
Only attributes bound to a session will be notified. I can't see anything other than that.
 
This one time, at bandcamp, I had relations with a tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic