Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

valueBound() and valueUnbound() methods

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What specific jobs are generally done inside the valueBound() and
valueUnbound() methods of the HttpSessionBindingListener interface that
is implemented by any class so that when the objects of the class are
added to using setAttribute() and removeAttribute() they (valueBound() or
valueUnbound()) could be called.


Please give some scenarios where I can avail the benefit of this listener.


Thanks,
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If you are reading HFSJ, then open page #183 and read the Answer of the Question asked on that page, it contains a great explanation ...

Best regards ...
 
Atul Sawant
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This listener is used to let the attribute know when they get created in a session (valueBound) or get removed from a session (valueUnbound).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic