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.