• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSessionBindingListener

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of HttpSessionBindingListener, is the valuebound method called after attribute is bounded or just before attribute is bounded. Again in case of valueUnBound, is the method called just before unbounding or after unbounding..

shashank
 
Vikrant Pandit
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm ..... I guess the correct order would be

valueBound -> Allows Attribute to ready itself before joining the gang of other attributes

attributeAdded

attributeRemoved/attributeReplaced

valueUnbound -> The party is over . Send your data to where it belongs ...database

Comments are invited .....

DISCLAIMER : Dont come looking for me with a gun if you answer a question wrongly based on my answer given above
[ September 04, 2006: Message edited by: Vivek Pandey ]
 
Babji Reddy
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think both methods callbacks happen AFTER the event.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the spec:
The valueBound method must be called before the object is made available via the getAttribute method of the HttpSession interface. The valueUnbound
method must be called after the object is no longer available via the getAttribute method of the HttpSession interface.


I think this is clear enough, so Vivek won't get shot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic