This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Doubt on Session Attribute and Web Deployment  RSS feed

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,

1)if an attribute is replaced in session... do its valueUnbound() called, if the attribute of that type is registered with HttpSessionBindingListener.
Enthuware doesnt mark it correct.

2)What is the correct sequence while web application is deployed?
a. Instantiate listeners defined in the deployment descriptor.
b. Initialize filters defined in the deployment descriptor.
c. Initialize servlets that are set to load on startup.
d. Call the contextInitialized method on the listeners implementing ServletContextListener interface.

regards,
Abhi
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator





output is

value is bound
value is bound
value is unbound
value is bound
value is unbound
value is bound
value is unbound

When an attribute is replaced valueUnbound method is called..

Please correct me if I am wrong
 
Lalit mishra
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer for your second Question is

Instantiate listeners defined in the deployment descriptor.
Call the contextInitialized method on the listeners implementing ServletContextListener interface.
Initialize filters defined in the deployment descriptor.
Initialize servlets that are set to load on startup.
 
Abhishek Pratap
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the source of answer2?
 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a past posting, people got different answers depending on which container they ran in

http://www.coderanch.com/t/175535/java-Web-Component-SCWCD/certification/Listeners
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!