Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Startup steps

 
Lalit mishra
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What is a startup steps for a web-application when i have a filters listners and load-on-startup 1 for the servlet and ServletContextListener.

Thanks,
Lalit M.
 
Yoshita Jain
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Goes like this:

Listeners in the are instantiated.
contextInitialized method on the ServletContextListener implementor called.
Filters initialized.
Servlet loaded. (if you have only one servlet with load on startup value as 1, it really doesn't matter... you've got just one servlet to load anyway)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!