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

context-param & thread-safety: A question I came across

 
S Subramonyan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Couple of days back, Saeed Ameer's question about thread safety and context-param caught the eyes of many ranchers. The discussion concluded, parameters under context-param in web.xml are thread-safe.

Here is a question from JWebplus.


Which of the following are true regarding the parameters defined using the <context-param> element of a deployment descriptor?


Select 2 correct options

a They are thread safe.
b They are accessible from multiple threads simultaneously and from any servlet of the web application.
c They can be modified using the setAttribute() method.
d They can be modified using the setParameter() method.
e They can be modified using the setInitParameter() method.

Answers(a, b)

Just to let you know what I saw, since we had a long discussion on it.

Cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic