This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!