• 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

JWebPlus:Question ID :1000047498130

 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question ID :1000047498130
A parameter is defined in <context-param> element of deployment descripter. Which of the following are correct?
ANS:
It is accessible to all the servlets of the webapp.
I think: It is accessible to all the servlets of all the webapp of the container.B/C one Servlet Context is made for one JVM,and since for one container.Therefore all the webapp within a container can access.
One the other hand i also thinks that, given answer is right b/c Servlet container may be distributed and therefore all the webapp of the container will NOT access.
Anwayz.....i am confused

Bye.
Viki.
[ February 27, 2002: Message edited by: Vikrama Sanjeeva ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vikrama Sanjeeva:
I think: It is accessible to all the servlets of all the webapp of the container.B/C one Servlet Context is made for one JVM,and since for one container.Therefore all the webapp within a container can access.
QUOTE]
I recommend that you get familiar with the concept of distributed web-apps. check the specification for details.
in a few words:
if you have a distributed web-app, then the context (with all its parameters) is copied to
all machines, where the web-app runs. so
you have access to the context-params (defined in
the web.xml) on all machines. however, this is not true, if you add parameters to the context, while it is already running. in this case, the attributes are not copied to the other machines.
hth
Hansjoerg

 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do we get question about descriptor also ??
is it not server dependent ??
CMIW
TIA
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic