• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

HttpSessionBindingListener

 
Ranch Hand
Posts: 393
  • 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
 
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 ]
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think both methods callbacks happen AFTER the event.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic