File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JWebPlus:Question ID :1000047498130 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JWebPlus:Question ID :1000047498130" Watch "JWebPlus:Question ID :1000047498130" New topic
Author

JWebPlus:Question ID :1000047498130

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
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 ]

Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Hansjoerg Wingeier
Greenhorn

Joined: Dec 19, 2001
Posts: 3
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

Joined: Oct 15, 2001
Posts: 5371
do we get question about descriptor also ??
is it not server dependent ??
CMIW
TIA


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JWebPlus:Question ID :1000047498130
 
Similar Threads
ServletConfig vs ServletContext
Add application context to WAS 5.0
Aleksander's Clarification needed
Ambigues Question
Application Context