• 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

HttpSessionBindingListener

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
If we implement a class with HttpSessionBingindListener, do we have to register it in web.xml to get the event notifications. I am still confused regarding it
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rajesh
No the HttpSessionBindingListener doesn't have to be configured in the deployment descriptor. This interface is implemented by the objects themselves so they themsleves must implement the methods in the interface not another class like the HttpSessionAttributeListener.
You could have a class called Employee that implements the interface so that whenever an employee object is added to or taken from (bound or unbound) the session the apporpriate method in that class is called.
hope that helps
 
reply
    Bookmark Topic Watch Topic
  • New Topic