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

Context param

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
If we have parameters in contex param element (web.xml), when will Web Container add those into servlet context? In deployment time or when those is first used by servlets?
thanks
daniel
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3889
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What difference does it make? All you care is, whether the initialization parameters are available to you when you want to use them.
 
R K Singh
Ranch Hand
Posts: 5388
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IMHO, context must be initialized while loading the server.
Config might be initialized when its servlet is loaded in the memory.
CMIW
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!