Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletContext initialization parameters

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Question 2 of Mock exam chapter 5 says that servletcontext initialization parameters should be used for data that rarely changes. I have doubt whether the statement should be rarely changes or does not change.Can someone give me an instance where this parameter changes.

thnx in advance.
 
John Wolf
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chaurasia,

The Context init-param can only be changed manually by updating the web.xml, hence its for data that "rarely changes." It depends on the parameters being added to the web.xml, one example is the configuration file names or path changes that need to be loaded when the container loads. These file names or path don't change that often, but when they do, you need to update the web.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic