File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JWebPlus:Question ID :1000047498130

 
Vikrama Sanjeeva
Ranch Hand
Posts: 756
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Hansjoerg Wingeier
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
R K Singh
Ranch Hand
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do we get question about descriptor also ??
is it not server dependent ??
CMIW
TIA
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic