• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

listeners

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

The difference is that Http-SessionAttributeListener is configured in the deployment descriptor and the
container creates only one instance of the specified class. HttpSessionBindingEvents generated from all the sessions are sent to this object. On the other hand,
HttpSessionBindingListener is not configured in the deployment descriptor



This is from Hanumant deshmukh . But i have read in HFSJ that it is not reqired for Http-SessionAttributeListener to be declared in DD.
Can anyone give the explanation .


 
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
The answer is in this FAQ.
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HttpSessionActivationListener and HttpSessionBinding Listener need not be configured in DD. All other listeners have to be configred in DD. where was it mentioned in HFSJ that Attribute Listener need not be configured?
Thumb rule:
When the Sessionlistener purpose is to notify the attribute objects ( i.e to notify a dog object when it is added to session / migrated to another VM ) those listeners need not be declared in DD.

Please correct me if I am wrong.
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

ankit kumar wrote:
This is from Hanumant deshmukh . But i have read in HFSJ that it is not reqired for Http-SessionAttributeListener to be declared in DD.
Can anyone give the explanation .



where was it mentioned in HFSJ that Attribute Listener need not be configured?



Well HFSJ does mention that Http-SessionAttributeListener needs to be declared in the DD. However that is an errata. FAQ mentions it and you can consult the list of confirmed HFSJ errata

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic