• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic