This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
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: 5369
posted
0
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